home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| POSIX shell script text executable
| default
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| LaTeX auxiliary file
| default
| |
97%
| file
| a /bin/sh script, ASCII text executable
| default (weak)
| |
100%
| TrID
| shar SHell self-extracting aRchive
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| Shell Skript: '/bin/sh'
| default (weak)
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| binwalkID
| Executable script, shebang: "/bin/sh"
| default (weak)
| |
100%
| xdgMime
| application/x-shellscript
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000010| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000020| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|00000030| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|00000040| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 75 6e |is line,| then un|
|00000050| 70 61 63 6b 0a 23 20 69 | 74 20 62 79 20 73 61 76 |pack.# i|t by sav|
|00000060| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 61 20 66 69 |ing it i|nto a fi|
|00000070| 6c 65 20 61 6e 64 20 74 | 79 70 69 6e 67 20 22 73 |le and t|yping "s|
|00000080| 68 20 66 69 6c 65 22 2e | 20 20 54 6f 20 6f 76 65 |h file".| To ove|
|00000090| 72 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 0a |rwrite e|xisting.|
|000000a0| 23 20 66 69 6c 65 73 2c | 20 74 79 70 65 20 22 73 |# files,| type "s|
|000000b0| 68 20 66 69 6c 65 20 2d | 63 22 2e 20 20 59 6f 75 |h file -|c". You|
|000000c0| 20 63 61 6e 20 61 6c 73 | 6f 20 66 65 65 64 20 74 | can als|o feed t|
|000000d0| 68 69 73 20 61 73 20 73 | 74 61 6e 64 61 72 64 20 |his as s|tandard |
|000000e0| 69 6e 70 75 74 20 76 69 | 61 0a 23 20 75 6e 73 68 |input vi|a.# unsh|
|000000f0| 61 72 2c 20 6f 72 20 62 | 79 20 74 79 70 69 6e 67 |ar, or b|y typing|
|00000100| 20 22 73 68 20 3c 66 69 | 6c 65 22 2c 20 65 2e 67 | "sh <fi|le", e.g|
|00000110| 2e 2e 20 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |.. If t|his arch|
|00000120| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|00000130| 20 79 6f 75 0a 23 20 77 | 69 6c 6c 20 73 65 65 20 | you.# w|ill see |
|00000140| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000150| 73 73 61 67 65 20 61 74 | 20 74 68 65 20 65 6e 64 |ssage at| the end|
|00000160| 3a 0a 23 09 09 22 45 6e | 64 20 6f 66 20 61 72 63 |:.#.."En|d of arc|
|00000170| 68 69 76 65 20 39 20 28 | 6f 66 20 31 30 29 2e 22 |hive 9 (|of 10)."|
|00000180| 0a 23 20 43 6f 6e 74 65 | 6e 74 73 3a 20 20 54 58 |.# Conte|nts: TX|
|00000190| 53 66 69 67 73 2e 74 65 | 78 20 54 58 53 6d 61 63 |Sfigs.te|x TXSmac|
|000001a0| 73 2e 74 65 78 0a 23 20 | 57 72 61 70 70 65 64 20 |s.tex.# |Wrapped |
|000001b0| 62 79 20 6d 79 65 72 73 | 40 6c 61 6e 64 61 75 20 |by myers|@landau |
|000001c0| 6f 6e 20 54 75 65 20 41 | 75 67 20 20 34 20 31 34 |on Tue A|ug 4 14|
|000001d0| 3a 30 36 3a 32 30 20 31 | 39 39 32 0a 50 41 54 48 |:06:20 1|992.PATH|
|000001e0| 3d 2f 62 69 6e 3a 2f 75 | 73 72 2f 62 69 6e 3a 2f |=/bin:/u|sr/bin:/|
|000001f0| 75 73 72 2f 75 63 62 20 | 3b 20 65 78 70 6f 72 74 |usr/ucb |; export|
|00000200| 20 50 41 54 48 0a 69 66 | 20 74 65 73 74 20 2d 66 | PATH.if| test -f|
|00000210| 20 27 54 58 53 66 69 67 | 73 2e 74 65 78 27 20 2d | 'TXSfig|s.tex' -|
|00000220| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00000230| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00000240| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000250| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000260| 66 69 6c 65 20 5c 22 27 | 54 58 53 66 69 67 73 2e |file \"'|TXSfigs.|
|00000270| 74 65 78 27 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |tex'\".e|lse.echo|
|00000280| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00000290| 67 20 5c 22 27 54 58 53 | 66 69 67 73 2e 74 65 78 |g \"'TXS|figs.tex|
|000002a0| 27 5c 22 20 5c 28 33 30 | 32 39 36 20 63 68 61 72 |'\" \(30|296 char|
|000002b0| 61 63 74 65 72 73 5c 29 | 0a 73 65 64 20 22 73 2f |acters\)|.sed "s/|
|000002c0| 5e 58 2f 2f 22 20 3e 27 | 54 58 53 66 69 67 73 2e |^X//" >'|TXSfigs.|
|000002d0| 74 65 78 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |tex' <<'|END_OF_F|
|000002e0| 49 4c 45 27 0a 58 25 20 | 54 58 53 66 69 67 73 2e |ILE'.X% |TXSfigs.|
|000002f0| 74 65 78 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |tex | |
|00000300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000310| 20 20 20 20 20 20 54 65 | 58 73 69 73 20 76 65 72 | Te|Xsis ver|
|00000320| 73 69 6f 6e 20 32 2e 31 | 35 20 20 0a 58 25 20 24 |sion 2.1|5 .X% $|
|00000330| 52 65 76 69 73 69 6f 6e | 3a 20 31 35 2e 36 20 24 |Revision|: 15.6 $|
|00000340| 20 20 3a 20 20 24 44 61 | 74 65 3a 20 39 32 2f 30 | : $Da|te: 92/0|
|00000350| 36 2f 32 30 20 32 32 3a | 32 36 3a 34 39 20 24 20 |6/20 22:|26:49 $ |
|00000360| 20 3a 20 20 24 41 75 74 | 68 6f 72 3a 20 70 61 69 | : $Aut|hor: pai|
|00000370| 67 65 20 24 0a 58 25 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ge $.X%=|========|
|00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 2a 0a 58 |========|=====*.X|
|000003c0| 25 20 46 49 47 55 52 45 | 20 41 4e 44 20 54 41 42 |% FIGURE| AND TAB|
|000003d0| 4c 45 20 4d 41 43 52 4f | 53 20 20 20 20 20 20 20 |LE MACRO|S |
|000003e0| 2d 20 20 54 68 69 73 20 | 66 69 6c 65 20 69 73 20 |- This |file is |
|000003f0| 61 20 70 61 72 74 20 6f | 66 20 54 65 58 73 69 73 |a part o|f TeXsis|
|00000400| 0a 58 25 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X% | |
|00000410| 20 20 20 20 20 20 20 20 | 20 20 28 43 29 20 63 6f | | (C) co|
|00000420| 70 79 72 69 67 68 74 20 | 31 39 39 31 20 62 79 20 |pyright |1991 by |
|00000430| 45 72 69 63 20 4d 79 65 | 72 73 20 61 6e 64 20 46 |Eric Mye|rs and F|
|00000440| 72 61 6e 6b 20 50 61 69 | 67 65 2e 0a 58 25 0a 58 |rank Pai|ge..X%.X|
|00000450| 25 0a 58 25 20 20 20 20 | 20 20 54 68 65 73 65 20 |%.X% | These |
|00000460| 6d 61 63 72 6f 73 20 68 | 61 6e 64 6c 65 73 20 66 |macros h|andles f|
|00000470| 69 67 75 72 65 73 20 61 | 6e 64 20 74 61 62 6c 65 |igures a|nd table|
|00000480| 73 20 77 69 74 68 20 61 | 75 74 6f 6d 61 74 69 63 |s with a|utomatic|
|00000490| 0a 58 25 20 6e 75 6d 62 | 65 72 69 6e 67 20 61 6e |.X% numb|ering an|
|000004a0| 64 20 74 61 67 20 72 65 | 66 65 72 65 6e 63 69 6e |d tag re|ferencin|
|000004b0| 67 2e 20 49 74 20 61 6c | 73 6f 20 69 6e 63 6c 75 |g. It al|so inclu|
|000004c0| 64 65 73 20 6d 61 63 72 | 6f 73 20 66 6f 72 20 72 |des macr|os for r|
|000004d0| 75 6c 65 64 0a 58 25 20 | 74 61 62 6c 65 73 2e 0a |uled.X% |tables..|
|000004e0| 58 25 0a 58 25 20 53 6f | 75 72 63 65 73 3a 20 20 |X%.X% So|urces: |
|000004f0| 20 20 20 20 5c 72 75 6c | 65 64 74 61 62 6c 65 20 | \rul|edtable |
|00000500| 69 73 20 61 20 72 65 2d | 77 72 69 74 65 20 6f 66 |is a re-|write of|
|00000510| 20 74 68 65 20 74 61 62 | 6c 65 20 6d 61 63 72 6f | the tab|le macro|
|00000520| 73 20 6f 66 20 52 2e 20 | 43 6f 77 61 6e 0a 58 25 |s of R. |Cowan.X%|
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|00000540| 73 20 64 65 73 63 72 69 | 62 65 64 20 69 6e 20 68 |s descri|bed in h|
|00000550| 69 73 20 54 41 42 4c 45 | 44 4f 43 2e 54 45 58 2e |is TABLE|DOC.TEX.|
|00000560| 0a 58 25 0a 58 25 20 44 | 65 70 65 6e 64 65 6e 63 |.X%.X% D|ependenc|
|00000570| 69 65 73 3a 20 54 58 53 | 6d 61 63 73 2e 74 65 78 |ies: TXS|macs.tex|
|00000580| 2c 20 54 58 53 74 61 67 | 73 2e 74 65 78 0a 58 25 |, TXStag|s.tex.X%|
|00000590| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000005a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000005b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000005c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000005d0| 3d 3d 3d 3d 3d 3d 2a 0a | 58 5c 6d 65 73 73 61 67 |======*.|X\messag|
|000005e0| 65 7b 46 69 67 75 72 65 | 73 20 61 6e 64 20 54 61 |e{Figure|s and Ta|
|000005f0| 62 6c 65 73 2e 7d 0a 58 | 5c 63 61 74 63 6f 64 65 |bles.}.X|\catcode|
|00000600| 60 5c 40 3d 31 31 20 20 | 20 20 20 20 20 20 20 20 |`\@=11 | |
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000620| 20 20 20 20 20 20 20 20 | 25 20 6c 65 74 27 73 20 | |% let's |
|00000630| 75 73 65 20 40 20 61 73 | 20 61 20 6c 65 74 74 65 |use @ as| a lette|
|00000640| 72 20 68 65 72 65 0a 58 | 5c 6c 65 74 5c 4e 58 3d |r here.X|\let\NX=|
|00000650| 5c 6e 6f 65 78 70 61 6e | 64 5c 6c 65 74 5c 58 41 |\noexpan|d\let\XA|
|00000660| 3d 5c 65 78 70 61 6e 64 | 61 66 74 65 72 20 20 20 |=\expand|after |
|00000670| 20 20 20 20 20 20 20 20 | 25 20 68 61 6e 64 79 20 | |% handy |
|00000680| 61 62 62 72 65 76 69 61 | 74 69 6f 6e 73 0a 58 5c |abbrevia|tions.X\|
|00000690| 6f 66 66 70 61 72 65 6e | 73 20 20 20 20 20 20 20 |offparen|s |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|000006c0| 20 6d 61 6b 65 20 73 75 | 72 65 20 5b 20 5d 20 6e | make su|re [ ] n|
|000006d0| 6f 74 20 61 63 74 69 76 | 65 0a 58 20 20 20 20 20 |ot activ|e.X |
|000006e0| 0a 58 25 20 43 6f 75 6e | 74 65 72 73 20 66 6f 72 |.X% Coun|ters for|
|000006f0| 20 74 61 62 6c 65 20 6e | 75 6d 62 65 72 2c 20 66 | table n|umber, f|
|00000700| 69 67 75 72 65 20 6e 75 | 6d 62 65 72 2c 20 65 74 |igure nu|mber, et|
|00000710| 63 2e 2e 2e 0a 58 20 20 | 20 20 20 0a 58 5c 6e 65 |c....X | .X\ne|
|00000720| 77 63 6f 75 6e 74 5c 74 | 61 62 6e 75 6d 20 20 20 |wcount\t|abnum |
|00000730| 20 20 20 20 20 5c 74 61 | 62 6e 75 6d 3d 5c 7a 40 | \ta|bnum=\z@|
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 74 | | % t|
|00000750| 61 62 6c 65 20 6e 75 6d | 62 65 72 0a 58 5c 6e 65 |able num|ber.X\ne|
|00000760| 77 63 6f 75 6e 74 5c 66 | 69 67 6e 75 6d 20 20 20 |wcount\f|ignum |
|00000770| 20 20 20 20 20 5c 66 69 | 67 6e 75 6d 3d 5c 7a 40 | \fi|gnum=\z@|
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 66 | | % f|
|00000790| 69 67 75 72 65 20 6e 75 | 6d 62 65 72 0a 58 5c 6e |igure nu|mber.X\n|
|000007a0| 65 77 69 66 5c 69 66 52 | 6f 6d 61 6e 54 61 62 6c |ewif\ifR|omanTabl|
|000007b0| 65 73 20 20 20 20 5c 52 | 6f 6d 61 6e 54 61 62 6c |es \R|omanTabl|
|000007c0| 65 73 66 61 6c 73 65 20 | 20 20 20 20 20 20 25 20 |esfalse | % |
|000007d0| 52 6f 6d 61 6e 20 74 61 | 62 6c 65 20 6e 75 6d 62 |Roman ta|ble numb|
|000007e0| 65 72 73 0a 58 20 20 20 | 20 20 0a 58 25 3d 3d 3d |ers.X | .X%===|
|000007f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000810| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000820| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000830| 3d 3d 3d 2a 0a 58 25 20 | 46 49 47 55 52 45 53 2e |===*.X% |FIGURES.|
|00000840| 0a 58 25 20 20 20 20 20 | 20 20 54 68 65 20 66 6f |.X% | The fo|
|00000850| 6c 6c 6f 77 69 6e 67 20 | 6d 61 63 72 6f 73 20 69 |llowing |macros i|
|00000860| 6e 73 65 72 74 20 66 69 | 67 75 72 65 73 20 61 6e |nsert fi|gures an|
|00000870| 64 20 64 65 66 69 6e 65 | 20 74 61 67 73 20 66 6f |d define| tags fo|
|00000880| 72 20 74 68 65 6d 20 66 | 6f 72 0a 58 25 20 66 75 |r them f|or.X% fu|
|00000890| 74 75 72 65 20 72 65 66 | 65 72 65 6e 63 65 73 3a |ture ref|erences:|
|000008a0| 0a 58 25 20 20 5c 66 69 | 67 75 72 65 7b 3c 6c 61 |.X% \fi|gure{<la|
|000008b0| 62 65 6c 3e 7d 20 20 20 | 20 20 49 6e 73 65 72 74 |bel>} | Insert|
|000008c0| 20 66 69 67 75 72 65 20 | 61 74 20 74 6f 70 20 6f | figure |at top o|
|000008d0| 66 20 70 61 67 65 2c 20 | 6c 61 62 65 6c 65 64 20 |f page, |labeled |
|000008e0| 62 79 20 3c 6c 61 62 65 | 6c 3e 2e 0a 58 25 20 20 |by <labe|l>..X% |
|000008f0| 5c 6d 69 64 66 69 67 75 | 72 65 7b 3c 6c 61 62 65 |\midfigu|re{<labe|
|00000900| 6c 3e 7d 20 20 46 69 67 | 75 72 65 20 61 74 20 63 |l>} Fig|ure at c|
|00000910| 75 72 72 65 6e 74 20 70 | 6f 73 69 74 69 6f 6e 2e |urrent p|osition.|
|00000920| 0a 58 25 20 20 5c 74 6f | 70 66 69 67 75 72 65 7b |.X% \to|pfigure{|
|00000930| 3c 6c 61 62 65 6c 3e 7d | 20 20 46 69 67 75 72 65 |<label>}| Figure|
|00000940| 20 61 74 20 74 6f 70 20 | 6f 66 20 70 61 67 65 2c | at top |of page,|
|00000950| 20 73 61 6d 65 20 61 73 | 20 5c 66 69 67 75 72 65 | same as| \figure|
|00000960| 2e 0a 58 25 20 20 5c 66 | 75 6c 6c 66 69 67 75 72 |..X% \f|ullfigur|
|00000970| 65 7b 3c 6c 61 62 65 6c | 3e 7d 20 46 69 67 75 72 |e{<label|>} Figur|
|00000980| 65 20 6f 6e 20 61 20 73 | 65 70 61 72 61 74 65 20 |e on a s|eparate |
|00000990| 70 61 67 65 2e 0a 58 25 | 20 20 5c 65 6e 64 66 69 |page..X%| \endfi|
|000009a0| 67 75 72 65 20 20 20 20 | 20 20 20 20 20 20 20 45 |gure | E|
|000009b0| 6e 64 73 20 66 69 67 75 | 72 65 0a 58 25 20 20 5c |nds figu|re.X% \|
|000009c0| 66 69 67 75 72 65 73 69 | 7a 65 20 3c 64 69 6d 65 |figuresi|ze <dime|
|000009d0| 6e 3e 20 20 52 65 73 65 | 72 76 65 73 20 76 65 72 |n> Rese|rves ver|
|000009e0| 74 69 63 61 6c 20 73 70 | 61 63 65 20 6f 66 20 73 |tical sp|ace of s|
|000009f0| 69 7a 65 20 3c 64 69 6d | 65 6e 3e 20 66 6f 72 20 |ize <dim|en> for |
|00000a00| 66 69 67 75 72 65 2e 0a | 58 25 20 41 6c 73 6f 20 |figure..|X% Also |
|00000a10| 73 65 65 20 5c 63 61 70 | 74 69 6f 6e 20 62 65 6c |see \cap|tion bel|
|00000a20| 6f 77 2e 0a 58 20 20 20 | 20 20 0a 58 5c 6c 6f 6e |ow..X | .X\lon|
|00000a30| 67 5c 64 65 66 5c 66 69 | 67 75 72 65 7b 5c 40 66 |g\def\fi|gure{\@f|
|00000a40| 69 67 75 72 65 5c 74 6f | 70 69 6e 73 65 72 74 7d |igure\to|pinsert}|
|00000a50| 0a 58 5c 6c 6f 6e 67 5c | 64 65 66 5c 74 6f 70 66 |.X\long\|def\topf|
|00000a60| 69 67 75 72 65 7b 5c 40 | 66 69 67 75 72 65 5c 74 |igure{\@|figure\t|
|00000a70| 6f 70 69 6e 73 65 72 74 | 7d 20 20 20 20 20 20 20 |opinsert|} |
|00000a80| 20 20 25 20 73 79 6e 6f | 6e 79 6d 0a 58 5c 6c 6f | % syno|nym.X\lo|
|00000a90| 6e 67 5c 64 65 66 5c 6d | 69 64 66 69 67 75 72 65 |ng\def\m|idfigure|
|00000aa0| 7b 5c 40 66 69 67 75 72 | 65 5c 6d 69 64 69 6e 73 |{\@figur|e\midins|
|00000ab0| 65 72 74 7d 0a 58 5c 6c | 6f 6e 67 5c 64 65 66 5c |ert}.X\l|ong\def\|
|00000ac0| 66 75 6c 6c 66 69 67 75 | 72 65 7b 5c 40 66 69 67 |fullfigu|re{\@fig|
|00000ad0| 75 72 65 5c 70 61 67 65 | 69 6e 73 65 72 74 7d 0a |ure\page|insert}.|
|00000ae0| 58 20 20 20 20 20 0a 58 | 5c 6c 6f 6e 67 5c 64 65 |X .X|\long\de|
|00000af0| 66 5c 77 69 64 65 66 69 | 67 75 72 65 7b 5c 40 66 |f\widefi|gure{\@f|
|00000b00| 69 67 75 72 65 5c 77 69 | 64 65 74 6f 70 69 6e 73 |igure\wi|detopins|
|00000b10| 65 72 74 7d 0a 58 5c 6c | 6f 6e 67 5c 64 65 66 5c |ert}.X\l|ong\def\|
|00000b20| 77 69 64 65 74 6f 70 66 | 69 67 75 72 65 7b 5c 40 |widetopf|igure{\@|
|00000b30| 66 69 67 75 72 65 5c 77 | 69 64 65 74 6f 70 69 6e |figure\w|idetopin|
|00000b40| 73 65 72 74 7d 0a 58 5c | 6c 6f 6e 67 5c 64 65 66 |sert}.X\|long\def|
|00000b50| 5c 77 69 64 65 66 75 6c | 6c 66 69 67 75 72 65 7b |\wideful|lfigure{|
|00000b60| 5c 40 66 69 67 75 72 65 | 5c 77 69 64 65 70 61 67 |\@figure|\widepag|
|00000b70| 65 69 6e 73 65 72 74 7d | 0a 58 20 20 20 20 20 0a |einsert}|.X .|
|00000b80| 58 5c 6c 65 74 5c 74 6f | 70 46 69 67 75 72 65 3d |X\let\to|pFigure=|
|00000b90| 5c 74 6f 70 66 69 67 75 | 72 65 20 20 20 20 20 20 |\topfigu|re |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 25 20 73 79 6e 6f 6e | | % synon|
|00000bb0| 79 6d 20 28 32 2e 31 31 | 29 0a 58 5c 6c 65 74 5c |ym (2.11|).X\let\|
|00000bc0| 6d 69 64 46 69 67 75 72 | 65 3d 5c 6d 69 64 66 69 |midFigur|e=\midfi|
|00000bd0| 67 75 72 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |gure | |
|00000be0| 20 20 20 25 20 73 79 6e | 6f 6e 79 6d 20 28 32 2e | % syn|onym (2.|
|00000bf0| 31 31 29 0a 58 5c 6c 65 | 74 5c 66 75 6c 6c 46 69 |11).X\le|t\fullFi|
|00000c00| 67 75 72 65 3d 5c 66 75 | 6c 6c 66 69 67 75 72 65 |gure=\fu|llfigure|
|00000c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 73 | | % s|
|00000c20| 79 6e 6f 6e 79 6d 20 28 | 32 2e 31 31 29 0a 58 5c |ynonym (|2.11).X\|
|00000c30| 6c 65 74 5c 54 4f 50 46 | 49 47 55 52 45 3d 5c 74 |let\TOPF|IGURE=\t|
|00000c40| 6f 70 66 69 67 75 72 65 | 20 20 20 20 20 20 20 20 |opfigure| |
|00000c50| 20 20 20 20 20 20 20 25 | 20 73 79 6e 6f 6e 79 6d | %| synonym|
|00000c60| 20 28 32 2e 31 31 29 0a | 58 5c 6c 65 74 5c 4d 49 | (2.11).|X\let\MI|
|00000c70| 44 46 49 47 55 52 45 3d | 5c 6d 69 64 66 69 67 75 |DFIGURE=|\midfigu|
|00000c80| 72 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |re | |
|00000c90| 20 25 20 73 79 6e 6f 6e | 75 6d 20 28 32 2e 31 31 | % synon|um (2.11|
|00000ca0| 29 0a 58 5c 6c 65 74 5c | 46 55 4c 4c 46 49 47 55 |).X\let\|FULLFIGU|
|00000cb0| 52 45 3d 5c 66 75 6c 6c | 66 69 67 75 72 65 20 20 |RE=\full|figure |
|00000cc0| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 73 79 6e | | % syn|
|00000cd0| 6f 6e 79 6d 20 28 32 2e | 31 31 29 0a 58 0a 58 20 |onym (2.|11).X.X |
|00000ce0| 20 20 20 20 0a 58 25 20 | 5c 40 66 69 67 75 72 65 | .X% |\@figure|
|00000cf0| 20 69 73 20 74 68 65 20 | 67 65 6e 65 72 69 63 20 | is the |generic |
|00000d00| 66 69 67 75 72 65 20 6d | 61 6b 69 6e 67 20 6d 61 |figure m|aking ma|
|00000d10| 63 72 6f 2e 20 49 66 20 | 5c 46 69 67 73 4c 61 73 |cro. If |\FigsLas|
|00000d20| 74 20 69 73 0a 58 25 20 | 73 65 74 20 69 74 20 77 |t is.X% |set it w|
|00000d30| 72 69 74 65 73 20 74 68 | 65 20 66 69 67 75 72 65 |rites th|e figure|
|00000d40| 20 6d 61 74 65 72 69 61 | 6c 20 6f 75 74 20 74 6f | materia|l out to|
|00000d50| 20 61 20 66 69 6c 65 20 | 74 6f 20 62 65 20 72 65 | a file |to be re|
|00000d60| 61 64 0a 58 25 20 69 6e | 20 6c 61 74 65 72 2e 20 |ad.X% in| later. |
|00000d70| 20 4f 74 68 65 72 77 69 | 73 65 20 69 74 20 70 75 | Otherwi|se it pu|
|00000d80| 74 73 20 74 68 65 20 66 | 69 67 75 72 65 20 6d 61 |ts the f|igure ma|
|00000d90| 74 65 72 69 61 6c 20 69 | 6e 74 6f 20 61 6e 20 5c |terial i|nto an \|
|00000da0| 69 6e 73 65 72 74 0a 58 | 25 20 67 69 76 65 6e 20 |insert.X|% given |
|00000db0| 62 79 20 23 31 2e 20 20 | 23 32 20 69 73 20 74 68 |by #1. |#2 is th|
|00000dc0| 65 20 6c 61 62 65 6c 20 | 77 68 69 63 68 20 66 6f |e label |which fo|
|00000dd0| 6c 6c 6f 77 73 20 5c 66 | 69 67 75 72 65 0a 58 20 |llows \f|igure.X |
|00000de0| 20 20 20 20 0a 58 5c 64 | 65 66 5c 40 66 69 67 75 | .X\d|ef\@figu|
|00000df0| 72 65 23 31 23 32 7b 25 | 20 20 20 20 20 20 67 65 |re#1#2{%| ge|
|00000e00| 6e 65 72 69 63 20 72 6f | 75 74 69 6e 65 20 74 6f |neric ro|utine to|
|00000e10| 20 6d 61 6b 65 20 61 6e | 64 20 6c 61 62 65 6c 20 | make an|d label |
|00000e20| 61 20 66 69 67 75 72 65 | 0a 58 20 20 5c 76 73 6b |a figure|.X \vsk|
|00000e30| 69 70 20 30 70 74 20 20 | 20 20 20 20 20 20 20 20 |ip 0pt | |
|00000e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e50| 20 20 20 20 20 20 20 20 | 20 20 25 20 66 6f 72 63 | | % forc|
|00000e60| 65 20 76 65 72 74 69 61 | 6c 20 6d 6f 64 65 20 61 |e vertia|l mode a|
|00000e70| 6e 64 20 61 6e 63 68 6f | 72 0a 58 20 20 5c 62 65 |nd ancho|r.X \be|
|00000e80| 67 69 6e 67 72 6f 75 70 | 20 20 20 20 20 20 20 20 |gingroup| |
|00000e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ea0| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 68 69 64 | | % hid|
|00000eb0| 65 20 6f 75 72 20 63 61 | 6c 63 75 6c 61 74 69 6f |e our ca|lculatio|
|00000ec0| 6e 73 0a 58 20 20 20 5c | 6c 65 74 5c 40 63 6f 75 |ns.X \|let\@cou|
|00000ed0| 6e 74 3d 5c 66 69 67 6e | 75 6d 20 20 20 20 20 20 |nt=\fign|um |
|00000ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ef0| 20 20 20 20 25 20 63 6f | 75 6e 74 65 72 20 69 73 | % co|unter is|
|00000f00| 20 5c 66 69 67 6e 75 6d | 0a 58 20 20 20 5c 64 65 | \fignum|.X \de|
|00000f10| 66 5c 40 70 72 65 66 69 | 78 7b 46 67 2e 7d 25 20 |f\@prefi|x{Fg.}% |
|00000f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f30| 20 20 20 20 20 20 20 20 | 20 20 25 20 70 72 65 66 | | % pref|
|00000f40| 69 78 20 66 6f 72 20 74 | 61 67 67 69 6e 67 20 6c |ix for t|agging l|
|00000f50| 61 62 65 6c 73 0a 58 20 | 20 20 5c 69 66 20 3f 23 |abels.X | \if ?#|
|00000f60| 32 3f 5c 72 65 6c 61 78 | 20 5c 64 65 66 5c 40 49 |2?\relax| \def\@I|
|00000f70| 44 7b 7d 25 20 20 20 20 | 20 20 20 20 20 20 20 20 |D{}% | |
|00000f80| 20 20 20 20 20 20 20 25 | 20 69 66 20 6e 6f 20 6c | %| if no l|
|00000f90| 61 62 65 6c 20 5c 40 49 | 44 20 69 73 20 6e 75 6c |abel \@I|D is nul|
|00000fa0| 6c 0a 58 20 20 20 5c 65 | 6c 73 65 5c 4c 61 62 65 |l.X \e|lse\Labe|
|00000fb0| 6c 50 61 72 73 65 20 23 | 32 3b 3b 5c 65 6e 64 6c |lParse #|2;;\endl|
|00000fc0| 69 73 74 5c 66 69 20 20 | 20 20 20 20 20 20 20 20 |ist\fi | |
|00000fd0| 20 20 20 25 20 65 6c 73 | 65 20 70 61 72 73 65 20 | % els|e parse |
|00000fe0| 6c 61 62 65 6c 20 69 6e | 74 6f 20 5c 40 49 44 0a |label in|to \@ID.|
|00000ff0| 58 20 20 20 5c 64 65 66 | 5c 43 61 70 74 69 6f 6e |X \def|\Caption|
|00001000| 4e 61 6d 65 7b 46 69 67 | 75 72 65 7d 25 20 20 20 |Name{Fig|ure}% |
|00001010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001020| 20 25 20 74 79 70 65 20 | 6f 66 20 69 6e 73 65 72 | % type |of inser|
|00001030| 74 20 69 73 20 60 60 46 | 69 67 75 72 65 27 27 0a |t is ``F|igure''.|
|00001040| 58 20 20 20 5c 69 66 46 | 69 67 73 4c 61 73 74 20 |X \ifF|igsLast |
|00001050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001070| 20 25 20 53 61 76 65 20 | 46 69 67 75 72 65 73 20 | % Save |Figures |
|00001080| 74 69 6c 20 65 6e 64 3f | 0a 58 20 20 20 20 5c 65 |til end?|.X \e|
|00001090| 6d 73 67 7b 5c 43 61 70 | 74 69 6f 6e 4e 61 6d 65 |msg{\Cap|tionName|
|000010a0| 5c 73 70 61 63 65 5c 40 | 49 44 2e 20 7b 23 32 7d |\space\@|ID. {#2}|
|000010b0| 20 5b 73 74 6f 72 69 6e | 67 20 69 6e 20 5c 6a 6f | [storin|g in \jo|
|000010c0| 62 6e 61 6d 65 2e 66 67 | 5d 7d 25 20 2e 6c 6f 67 |bname.fg|]}% .log|
|000010d0| 20 69 74 0a 58 20 20 20 | 20 5c 40 66 67 77 72 69 | it.X | \@fgwri|
|000010e0| 74 65 7b 5c 40 63 6f 6d | 6d 65 6e 74 3e 20 5c 43 |te{\@com|ment> \C|
|000010f0| 61 70 74 69 6f 6e 4e 61 | 6d 65 5c 73 70 61 63 65 |aptionNa|me\space|
|00001100| 5c 40 49 44 2e 5c 73 70 | 61 63 65 7b 23 32 7d 7d |\@ID.\sp|ace{#2}}|
|00001110| 25 20 77 72 69 74 65 20 | 66 69 67 75 72 65 20 6e |% write |figure n|
|00001120| 75 6d 62 65 72 0a 58 20 | 20 20 20 5c 40 66 67 77 |umber.X | \@fgw|
|00001130| 72 69 74 65 7b 5c 4e 58 | 5c 40 46 69 67 75 72 65 |rite{\NX|\@Figure|
|00001140| 49 74 65 6d 7b 5c 43 61 | 70 74 69 6f 6e 4e 61 6d |Item{\Ca|ptionNam|
|00001150| 65 7d 7b 5c 40 49 44 7d | 7b 5c 4e 58 23 31 7d 7d |e}{\@ID}|{\NX#1}}|
|00001160| 25 20 20 20 20 20 20 20 | 25 20 74 6f 20 74 68 65 |% |% to the|
|00001170| 20 66 69 67 75 72 65 20 | 66 69 6c 65 0a 58 20 20 | figure |file.X |
|00001180| 20 20 5c 6e 65 77 6c 69 | 6e 65 63 68 61 72 3d 60 | \newli|nechar=`|
|00001190| 5c 5e 5e 4d 20 20 20 20 | 20 20 20 20 20 20 20 20 |\^^M | |
|000011a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|000011b0| 3c 43 52 3e 20 62 72 65 | 61 6b 73 20 6c 69 6e 65 |<CR> bre|aks line|
|000011c0| 73 20 69 6e 20 66 69 6c | 65 20 0a 58 20 20 20 20 |s in fil|e .X |
|000011d0| 5c 6f 62 65 79 6c 69 6e | 65 73 20 20 20 20 20 20 |\obeylin|es |
|000011e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 74 6f | | % to|
|00001200| 20 73 65 65 20 5e 5e 4d | 20 69 6e 20 74 65 78 74 | see ^^M| in text|
|00001210| 0a 58 20 20 20 20 5c 6c | 65 74 5c 40 6e 65 78 74 |.X \l|et\@next|
|00001220| 3d 5c 40 63 6f 70 79 66 | 69 67 20 20 20 20 20 20 |=\@copyf|ig |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001240| 20 20 25 20 67 6f 20 63 | 6f 70 79 20 66 69 67 75 | % go c|opy figu|
|00001250| 72 65 20 74 65 78 74 20 | 74 6f 20 66 69 6c 65 0a |re text |to file.|
|00001260| 58 20 20 20 5c 65 6c 73 | 65 20 20 20 20 20 20 20 |X \els|e |
|00001270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001290| 20 25 20 73 61 76 65 20 | 66 69 67 75 72 65 20 69 | % save |figure i|
|000012a0| 6e 20 2e 66 67 20 66 69 | 6c 65 0a 58 20 20 20 20 |n .fg fi|le.X |
|000012b0| 23 31 5c 72 65 6c 61 78 | 20 20 20 20 20 20 20 20 |#1\relax| |
|000012c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 73 74 | | % st|
|000012e0| 61 72 74 20 66 69 67 75 | 72 65 20 69 6e 73 65 72 |art figu|re inser|
|000012f0| 74 0a 58 20 20 20 20 5c | 73 65 74 62 6f 78 5c 40 |t.X \|setbox\@|
|00001300| 63 61 70 62 6f 78 5c 76 | 62 6f 78 20 74 6f 20 30 |capbox\v|box to 0|
|00001310| 70 74 7b 7d 25 20 20 20 | 20 20 20 20 20 20 20 20 |pt{}% | |
|00001320| 20 20 20 25 20 63 6c 65 | 61 72 73 20 63 61 70 74 | % cle|ars capt|
|00001330| 69 6f 6e 20 69 6e 20 5c | 40 63 61 70 62 6f 78 0a |ion in \|@capbox.|
|00001340| 58 20 20 20 20 5c 64 65 | 66 5c 40 77 68 65 72 65 |X \de|f\@where|
|00001350| 43 61 70 7b 4e 7d 25 20 | 20 20 20 20 20 20 20 20 |Cap{N}% | |
|00001360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001370| 20 25 20 6e 6f 20 63 61 | 70 74 69 6f 6e 20 28 79 | % no ca|ption (y|
|00001380| 65 74 29 0a 58 20 20 20 | 20 5c 65 6d 73 67 7b 5c |et).X | \emsg{\|
|00001390| 43 61 70 74 69 6f 6e 4e | 61 6d 65 5c 20 5c 40 49 |CaptionN|ame\ \@I|
|000013a0| 44 2e 5c 20 7b 23 32 7d | 7d 25 20 20 20 20 20 20 |D.\ {#2}|}% |
|000013b0| 20 20 20 20 20 25 20 61 | 6e 6e 6f 75 6e 63 65 20 | % a|nnounce |
|000013c0| 69 6e 20 2e 6c 6f 67 0a | 58 20 20 20 20 5c 6c 65 |in .log.|X \le|
|000013d0| 74 5c 65 6e 64 66 69 67 | 75 72 65 3d 5c 40 65 6e |t\endfig|ure=\@en|
|000013e0| 64 66 69 67 75 72 65 20 | 20 20 20 20 20 20 20 20 |dfigure | |
|000013f0| 20 20 20 20 20 20 20 20 | 20 25 20 68 6f 77 20 74 | | % how t|
|00001400| 6f 20 71 75 69 74 0a 58 | 20 20 20 20 5c 6c 65 74 |o quit.X| \let|
|00001410| 5c 65 6e 64 46 69 67 75 | 72 65 3d 5c 40 65 6e 64 |\endFigu|re=\@end|
|00001420| 66 69 67 75 72 65 20 20 | 20 20 20 20 20 20 20 20 |figure | |
|00001430| 20 20 20 20 20 20 20 20 | 25 20 68 6f 77 20 74 6f | |% how to|
|00001440| 20 71 75 69 74 0a 58 20 | 20 20 20 5c 6c 65 74 5c | quit.X | \let\|
|00001450| 45 4e 44 46 49 47 55 52 | 45 3d 5c 40 65 6e 64 66 |ENDFIGUR|E=\@endf|
|00001460| 69 67 75 72 65 20 20 20 | 20 20 20 20 20 20 20 20 |igure | |
|00001470| 20 20 20 20 20 20 20 25 | 20 68 6f 77 20 74 6f 20 | %| how to |
|00001480| 71 75 69 74 0a 58 20 20 | 20 20 5c 6c 65 74 5c 40 |quit.X | \let\@|
|00001490| 6e 65 78 74 3d 5c 40 66 | 69 6e 64 63 61 70 20 20 |next=\@f|indcap |
|000014a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014b0| 20 20 20 20 20 20 25 20 | 6c 6f 6f 6b 20 66 6f 72 | % |look for|
|000014c0| 20 5c 63 61 70 74 69 6f | 6e 20 6f 72 20 5c 43 61 | \captio|n or \Ca|
|000014d0| 70 74 69 6f 6e 0a 58 20 | 20 20 5c 66 69 0a 58 20 |ption.X | \fi.X |
|000014e0| 20 20 5c 40 6e 65 78 74 | 7d 0a 58 20 20 20 20 20 | \@next|}.X |
|000014f0| 0a 58 0a 58 25 20 20 20 | 5c 40 66 69 6e 64 63 61 |.X.X% |\@findca|
|00001500| 70 20 6c 6f 6f 6b 73 20 | 61 74 20 74 68 65 20 66 |p looks |at the f|
|00001510| 69 72 73 74 20 74 6f 6b | 65 6e 20 69 6e 20 74 68 |irst tok|en in th|
|00001520| 65 20 74 61 62 6c 65 20 | 62 6f 64 79 20 74 6f 20 |e table |body to |
|00001530| 73 65 65 20 69 66 0a 58 | 25 20 69 74 20 69 73 20 |see if.X|% it is |
|00001540| 61 20 5c 43 61 70 74 69 | 6f 6e 2e 20 20 54 68 65 |a \Capti|on. The|
|00001550| 6e 20 69 74 20 73 65 74 | 73 20 61 20 66 6c 61 67 |n it set|s a flag|
|00001560| 2c 20 61 6e 64 20 64 6f | 65 73 20 65 69 74 68 65 |, and do|es eithe|
|00001570| 72 20 74 68 65 20 62 6f | 64 79 20 6f 72 20 74 68 |r the bo|dy or th|
|00001580| 65 0a 58 25 20 63 61 70 | 74 69 6f 6e 20 61 63 63 |e.X% cap|tion acc|
|00001590| 6f 72 64 69 6e 67 6c 79 | 2e 0a 58 20 20 20 20 20 |ordingly|..X |
|000015a0| 0a 58 5c 6c 6f 6e 67 5c | 64 65 66 5c 40 66 69 6e |.X\long\|def\@fin|
|000015b0| 64 63 61 70 23 31 7b 25 | 20 20 20 20 20 20 20 20 |dcap#1{%| |
|000015c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|000015d0| 20 6c 6f 6f 6b 20 61 68 | 65 61 64 20 66 6f 72 20 | look ah|ead for |
|000015e0| 5c 63 61 70 74 69 6f 6e | 20 66 69 72 73 74 0a 58 |\caption| first.X|
|000015f0| 20 20 20 5c 69 66 78 20 | 23 31 5c 43 61 70 74 69 | \ifx |#1\Capti|
|00001600| 6f 6e 20 5c 64 65 66 5c | 40 77 68 65 72 65 43 61 |on \def\|@whereCa|
|00001610| 70 7b 54 7d 5c 66 69 20 | 20 20 20 20 20 20 20 20 |p{T}\fi | |
|00001620| 25 20 63 61 70 74 69 6f | 6e 20 61 74 20 54 28 6f |% captio|n at T(o|
|00001630| 70 29 0a 58 20 20 20 5c | 69 66 78 20 23 31 5c 63 |p).X \|ifx #1\c|
|00001640| 61 70 74 69 6f 6e 20 5c | 64 65 66 5c 40 77 68 65 |aption \|def\@whe|
|00001650| 72 65 43 61 70 7b 54 7d | 5c 66 69 20 20 20 20 20 |reCap{T}|\fi |
|00001660| 20 20 20 20 25 20 63 61 | 70 74 69 6f 6e 20 61 74 | % ca|ption at|
|00001670| 20 54 28 6f 70 29 0a 58 | 20 20 20 23 31 7d 25 20 | T(op).X| #1}% |
|00001680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016a0| 25 20 70 75 74 20 6c 6f | 6f 6b 61 68 65 61 64 20 |% put lo|okahead |
|000016b0| 74 6f 6b 65 6e 20 62 61 | 63 6b 20 69 6e 20 6c 69 |token ba|ck in li|
|000016c0| 73 74 0a 58 20 20 20 20 | 20 0a 58 5c 64 65 66 5c |st.X | .X\def\|
|000016d0| 40 77 68 65 72 65 43 61 | 70 7b 4e 7d 20 20 20 20 |@whereCa|p{N} |
|000016e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016f0| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 6e 6f 20 | | % no |
|00001700| 63 61 70 74 69 6f 6e 20 | 79 65 74 0a 58 0a 58 0a |caption |yet.X.X.|
|00001710| 58 25 20 20 20 5c 40 65 | 6e 64 66 69 67 75 72 65 |X% \@e|ndfigure|
|00001720| 20 65 6e 64 73 20 61 20 | 66 69 67 75 72 65 20 69 | ends a |figure i|
|00001730| 6e 73 65 72 74 69 6f 6e | 20 6d 61 64 65 20 62 79 |nsertion| made by|
|00001740| 20 5c 66 69 67 75 72 65 | 2c 20 5c 74 61 62 6c 65 | \figure|, \table|
|00001750| 2c 20 65 74 63 0a 58 20 | 20 20 20 20 0a 58 5c 64 |, etc.X | .X\d|
|00001760| 65 66 5c 40 65 6e 64 66 | 69 67 75 72 65 7b 5c 72 |ef\@endf|igure{\r|
|00001770| 65 6c 61 78 0a 58 25 25 | 20 20 20 5c 69 66 20 54 |elax.X%%| \if T|
|00001780| 5c 40 69 6e 43 61 70 74 | 69 6f 6e 5c 72 65 6c 61 |\@inCapt|ion\rela|
|00001790| 78 0a 58 25 25 20 20 20 | 20 5c 65 6d 73 67 7b 3e |x.X%% | \emsg{>|
|000017a0| 20 59 6f 75 20 66 6f 72 | 67 6f 74 20 61 6e 20 5c | You for|got an \|
|000017b0| 4e 58 5c 65 6e 64 43 61 | 70 74 69 6f 6e 20 69 6e |NX\endCa|ption in|
|000017c0| 20 5c 43 61 70 74 69 6f | 6e 4e 61 6d 65 5c 73 70 | \Captio|nName\sp|
|000017d0| 61 63 65 5c 40 49 44 2e | 7d 25 0a 58 25 25 20 20 |ace\@ID.|}%.X%% |
|000017e0| 20 5c 66 69 20 20 20 20 | 20 20 20 20 20 20 20 20 | \fi | |
|000017f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 0a | | %.|
|00001810| 58 20 20 20 5c 69 66 20 | 42 5c 40 77 68 65 72 65 |X \if |B\@where|
|00001820| 43 61 70 5c 72 65 6c 61 | 78 20 20 20 20 20 20 20 |Cap\rela|x |
|00001830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001840| 20 25 20 69 66 20 62 6f | 74 74 6f 6d 20 63 61 70 | % if bo|ttom cap|
|00001850| 74 69 6f 6e 20 74 68 65 | 6e 0a 58 20 20 20 20 20 |tion the|n.X |
|00001860| 5c 76 73 6b 69 70 5c 62 | 61 73 65 6c 69 6e 65 73 |\vskip\b|aselines|
|00001870| 6b 69 70 5c 6d 65 64 73 | 6b 69 70 20 20 20 20 20 |kip\meds|kip |
|00001880| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 73 6b 69 | | % ski|
|00001890| 70 20 64 6f 77 6e 20 61 | 6e 64 0a 58 20 20 20 20 |p down a|nd.X |
|000018a0| 20 5c 63 65 6e 74 65 72 | 6c 69 6e 65 7b 5c 62 6f | \center|line{\bo|
|000018b0| 78 5c 40 63 61 70 62 6f | 78 7d 25 20 20 20 20 20 |x\@capbo|x}% |
|000018c0| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 70 75 74 | | % put|
|000018d0| 20 63 61 70 74 69 6f 6e | 20 68 65 72 65 0a 58 20 | caption| here.X |
|000018e0| 20 20 20 20 5c 62 69 67 | 73 6b 69 70 20 20 20 20 | \big|skip |
|000018f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|00001910| 73 6f 6d 65 20 73 70 61 | 63 65 20 62 65 6c 6f 77 |some spa|ce below|
|00001920| 0a 58 20 20 20 5c 66 69 | 20 20 20 20 20 20 20 20 |.X \fi| |
|00001930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001950| 20 20 25 20 0a 58 20 20 | 20 5c 65 6e 64 69 6e 73 | % .X | \endins|
|00001960| 65 72 74 5c 65 6e 64 67 | 72 6f 75 70 7d 20 20 20 |ert\endg|roup} |
|00001970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001980| 20 20 20 20 20 20 25 20 | 65 6e 64 20 74 68 65 20 | % |end the |
|00001990| 69 6e 73 65 72 74 0a 58 | 20 20 20 20 20 0a 58 5c |insert.X| .X\|
|000019a0| 64 65 66 5c 65 6e 64 66 | 69 67 75 72 65 7b 5c 65 |def\endf|igure{\e|
|000019b0| 6d 73 67 7b 3e 20 5c 4e | 58 5c 65 6e 64 66 69 67 |msg{> \N|X\endfig|
|000019c0| 75 72 65 20 62 65 66 6f | 72 65 20 5c 4e 58 5c 66 |ure befo|re \NX\f|
|000019d0| 69 67 75 72 65 21 7d 7d | 0a 58 5c 64 65 66 5c 65 |igure!}}|.X\def\e|
|000019e0| 6e 64 46 69 67 75 72 65 | 7b 5c 65 6e 64 66 69 67 |ndFigure|{\endfig|
|000019f0| 75 72 65 7d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ure} | |
|00001a00| 20 20 20 20 20 20 20 20 | 20 20 25 20 73 79 6e 6f | | % syno|
|00001a10| 6e 79 6d 20 32 2e 31 31 | 0a 58 5c 64 65 66 5c 45 |nym 2.11|.X\def\E|
|00001a20| 4e 44 46 49 47 55 52 45 | 7b 5c 65 6e 64 66 69 67 |NDFIGURE|{\endfig|
|00001a30| 75 72 65 7d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ure} | |
|00001a40| 20 20 20 20 20 20 20 20 | 20 20 25 20 73 79 6e 6f | | % syno|
|00001a50| 6e 79 6d 20 32 2e 31 31 | 0a 58 20 20 20 20 20 0a |nym 2.11|.X .|
|00001a60| 58 0a 58 25 20 20 20 20 | 20 20 20 5c 66 69 67 75 |X.X% | \figu|
|00001a70| 72 65 73 69 7a 65 20 72 | 65 73 65 72 76 65 73 20 |resize r|eserves |
|00001a80| 73 70 61 63 65 20 23 31 | 2c 20 77 68 69 63 68 20 |space #1|, which |
|00001a90| 6d 75 73 74 20 62 65 20 | 61 20 6c 65 67 61 6c 20 |must be |a legal |
|00001aa0| 64 69 6d 65 6e 73 69 6f | 6e 2c 0a 58 25 20 66 6f |dimensio|n,.X% fo|
|00001ab0| 72 20 61 20 66 69 67 75 | 72 65 20 74 6f 20 62 65 |r a figu|re to be|
|00001ac0| 20 70 61 73 74 65 64 20 | 69 6e 2e 20 20 49 20 44 | pasted |in. I D|
|00001ad0| 4f 4e 27 54 20 54 48 49 | 4e 4b 20 54 48 45 20 5c |ON'T THI|NK THE \|
|00001ae0| 76 62 6f 78 20 49 53 20 | 4e 45 45 44 45 44 20 2d |vbox IS |NEEDED -|
|00001af0| 45 41 4d 0a 58 20 20 20 | 20 20 0a 58 5c 64 65 66 |EAM.X | .X\def|
|00001b00| 5c 66 69 67 75 72 65 73 | 69 7a 65 23 31 7b 5c 76 |\figures|ize#1{\v|
|00001b10| 62 6f 78 7b 5c 76 73 6b | 69 70 23 31 7d 7d 20 20 |box{\vsk|ip#1}} |
|00001b20| 20 20 20 20 25 20 73 70 | 61 63 65 20 66 6f 72 20 | % sp|ace for |
|00001b30| 66 69 67 75 72 65 0a 58 | 20 20 20 20 20 0a 58 25 |figure.X| .X%|
|00001b40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001b50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001b60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001b70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001b80| 3d 3d 3d 3d 3d 3d 2a 0a | 58 25 20 43 41 50 54 49 |======*.|X% CAPTI|
|00001b90| 4f 4e 53 2e 0a 58 25 20 | 20 20 20 20 20 20 41 20 |ONS..X% | A |
|00001ba0| 63 61 70 74 69 6f 6e 20 | 69 73 20 73 70 65 63 69 |caption |is speci|
|00001bb0| 66 69 65 64 20 62 79 20 | 5c 43 61 70 74 69 6f 6e |fied by |\Caption|
|00001bc0| 20 2e 2e 2e 5c 65 6e 64 | 43 61 70 74 69 6f 6e 2c | ...\end|Caption,|
|00001bd0| 20 6f 72 20 62 79 0a 58 | 25 20 5c 63 61 70 74 69 | or by.X|% \capti|
|00001be0| 6f 6e 7b 3c 74 65 78 74 | 3e 7d 2e 20 20 49 66 20 |on{<text|>}. If |
|00001bf0| 5c 63 61 70 74 69 6f 6e | 20 6f 72 20 5c 43 61 70 |\caption| or \Cap|
|00001c00| 74 69 6f 6e 20 69 73 20 | 74 68 65 20 66 69 72 73 |tion is |the firs|
|00001c10| 74 20 74 6f 6b 65 6e 20 | 61 66 74 65 72 20 0a 58 |t token |after .X|
|00001c20| 25 20 5c 66 69 67 75 72 | 65 20 6f 72 20 5c 74 61 |% \figur|e or \ta|
|00001c30| 62 6c 65 20 74 68 65 6e | 20 74 68 65 20 63 61 70 |ble then| the cap|
|00001c40| 74 69 6f 6e 20 61 70 70 | 65 61 72 73 20 61 74 20 |tion app|ears at |
|00001c50| 74 68 65 20 74 6f 70 3b | 20 6f 74 68 65 72 77 69 |the top;| otherwi|
|00001c60| 73 65 20 69 74 20 0a 58 | 25 20 61 70 70 65 61 72 |se it .X|% appear|
|00001c70| 73 20 61 74 20 74 68 65 | 20 62 6f 74 74 6f 6d 2e |s at the| bottom.|
|00001c80| 20 41 64 64 69 74 69 6f | 6e 61 6c 20 73 70 61 63 | Additio|nal spac|
|00001c90| 69 6e 67 20 63 61 6e 20 | 62 65 20 61 64 64 65 64 |ing can |be added|
|00001ca0| 20 77 69 74 68 20 61 6e | 79 20 6c 65 67 61 6c 20 | with an|y legal |
|00001cb0| 0a 58 25 20 5c 76 73 6b | 69 70 2e 0a 58 20 20 20 |.X% \vsk|ip..X |
|00001cc0| 20 20 0a 58 5c 6e 65 77 | 62 6f 78 5c 40 63 61 70 | .X\new|box\@cap|
|00001cd0| 62 6f 78 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |box | |
|00001ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001cf0| 20 20 20 20 25 20 62 6f | 78 20 74 6f 20 68 6f 6c | % bo|x to hol|
|00001d00| 64 20 63 61 70 74 69 6f | 6e 20 74 65 78 74 0a 58 |d captio|n text.X|
|00001d10| 5c 6e 65 77 63 6f 75 6e | 74 5c 40 63 61 70 6c 69 |\newcoun|t\@capli|
|00001d20| 6e 65 73 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |nes | |
|00001d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d40| 25 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |% number| of line|
|00001d50| 73 20 69 6e 20 63 61 70 | 74 69 6f 6e 0a 58 5c 64 |s in cap|tion.X\d|
|00001d60| 65 66 5c 43 61 70 74 69 | 6f 6e 4e 61 6d 65 7b 7d |ef\Capti|onName{}|
|00001d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|00001d90| 64 65 66 61 75 6c 74 20 | 43 61 70 74 69 6f 6e 20 |default |Caption |
|00001da0| 4e 61 6d 65 0a 58 5c 64 | 65 66 5c 40 49 44 7b 7d |Name.X\d|ef\@ID{}|
|00001db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001dd0| 20 20 20 20 20 20 25 20 | 64 65 66 61 75 6c 74 20 | % |default |
|00001de0| 5c 40 49 44 20 69 73 20 | 6e 75 6c 6c 0a 58 20 20 |\@ID is |null.X |
|00001df0| 20 20 20 0a 58 5c 64 65 | 66 5c 63 61 70 74 69 6f | .X\de|f\captio|
|00001e00| 6e 23 31 7b 25 20 63 72 | 65 61 74 65 20 61 20 63 |n#1{% cr|eate a c|
|00001e10| 61 70 74 69 6f 6e 20 66 | 6f 72 20 61 20 66 69 67 |aption f|or a fig|
|00001e20| 75 72 65 20 6f 72 20 74 | 61 62 6c 65 0a 58 20 20 |ure or t|able.X |
|00001e30| 20 5c 64 65 66 5c 6c 61 | 62 40 6c 7b 5c 40 49 44 | \def\la|b@l{\@ID|
|00001e40| 7d 25 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}% | |
|00001e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e60| 25 20 73 61 76 65 20 5c | 40 49 44 20 66 6f 72 20 |% save \|@ID for |
|00001e70| 5c 6c 61 62 65 6c 0a 58 | 20 20 20 5c 67 6c 6f 62 |\label.X| \glob|
|00001e80| 61 6c 5c 73 65 74 62 6f | 78 5c 40 63 61 70 62 6f |al\setbo|x\@capbo|
|00001e90| 78 3d 5c 76 62 6f 78 5c | 62 67 72 6f 75 70 20 20 |x=\vbox\|bgroup |
|00001ea0| 20 20 20 20 20 20 20 20 | 25 20 73 74 61 72 74 20 | |% start |
|00001eb0| 62 6f 78 20 66 6f 72 20 | 63 61 70 74 69 6f 6e 0a |box for |caption.|
|00001ec0| 58 20 20 20 20 5c 64 65 | 66 5c 40 69 6e 43 61 70 |X \de|f\@inCap|
|00001ed0| 74 69 6f 6e 7b 54 7d 25 | 20 20 20 20 20 20 20 20 |tion{T}%| |
|00001ee0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ef0| 20 25 20 66 6c 61 67 20 | 77 65 20 61 72 65 20 69 | % flag |we are i|
|00001f00| 6e 20 63 61 70 74 69 6f | 6e 0a 58 20 20 20 20 5c |n captio|n.X \|
|00001f10| 6e 6f 72 6d 61 6c 62 61 | 73 65 6c 69 6e 65 73 20 |normalba|selines |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 73 69 6e | | % sin|
|00001f40| 67 6c 65 73 70 61 63 69 | 6e 67 0a 58 20 20 20 20 |glespaci|ng.X |
|00001f50| 5c 64 69 6d 65 6e 40 3d | 32 30 5c 70 61 72 69 6e |\dimen@=|20\parin|
|00001f60| 64 65 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |dent | |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 69 66 | | % if|
|00001f80| 20 63 6f 6c 75 6d 6e 20 | 69 73 20 77 69 64 65 20 | column |is wide |
|00001f90| 74 68 65 6e 0a 58 20 20 | 20 20 5c 69 66 64 69 6d |then.X | \ifdim|
|00001fa0| 5c 63 6f 6c 77 69 64 74 | 68 3e 5c 64 69 6d 65 6e |\colwidt|h>\dimen|
|00001fb0| 40 5c 6e 61 72 72 6f 77 | 65 72 5c 6e 61 72 72 6f |@\narrow|er\narro|
|00001fc0| 77 65 72 5c 66 69 25 20 | 20 20 75 73 65 20 5c 6e |wer\fi% | use \n|
|00001fd0| 61 72 72 6f 77 65 72 20 | 63 61 70 74 69 6f 6e 0a |arrower |caption.|
|00001fe0| 58 20 20 20 20 5c 6e 6f | 69 6e 64 65 6e 74 7b 5c |X \no|indent{\|
|00001ff0| 62 66 20 5c 43 61 70 74 | 69 6f 6e 4e 61 6d 65 7e |bf \Capt|ionName~|
|00002000| 5c 40 49 44 3a 5c 73 70 | 61 63 65 7d 25 20 20 20 |\@ID:\sp|ace}% |
|00002010| 20 25 20 6c 61 62 65 6c | 20 60 60 46 69 67 75 72 | % label| ``Figur|
|00002020| 65 7e 6e 6e 6e 27 27 0a | 58 20 20 20 20 23 31 5c |e~nnn''.|X #1\|
|00002030| 72 65 6c 61 78 20 20 20 | 20 20 20 20 20 20 20 20 |relax | |
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002050| 20 20 20 20 20 20 20 20 | 20 25 20 63 61 70 74 69 | | % capti|
|00002060| 6f 6e 20 74 65 78 74 0a | 58 20 20 20 20 5c 76 73 |on text.|X \vs|
|00002070| 6b 69 70 30 70 74 20 20 | 20 20 20 20 20 20 20 20 |kip0pt | |
|00002080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002090| 20 20 20 20 20 20 20 20 | 20 25 20 65 6e 64 20 70 | | % end p|
|000020a0| 61 72 61 67 72 61 70 68 | 0a 58 20 20 20 20 5c 67 |aragraph|.X \g|
|000020b0| 6c 6f 62 61 6c 5c 40 63 | 61 70 6c 69 6e 65 73 3d |lobal\@c|aplines=|
|000020c0| 5c 70 72 65 76 67 72 61 | 66 20 20 20 20 20 20 20 |\prevgra|f |
|000020d0| 20 20 20 20 20 20 20 20 | 20 20 25 20 67 65 74 20 | | % get |
|000020e0| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 0a |number o|f lines.|
|000020f0| 58 20 20 20 5c 65 67 72 | 6f 75 70 20 20 20 20 20 |X \egr|oup |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002120| 20 25 20 6e 6f 77 20 63 | 61 70 74 69 6f 6e 20 69 | % now c|aption i|
|00002130| 73 20 69 6e 20 5c 76 62 | 6f 78 0a 58 20 20 20 5c |s in \vb|ox.X \|
|00002140| 69 66 6e 75 6d 5c 40 6e | 65 3d 5c 40 63 61 70 6c |ifnum\@n|e=\@capl|
|00002150| 69 6e 65 73 20 20 20 20 | 20 20 20 20 20 20 20 20 |ines | |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 69 66 | | % if|
|00002170| 20 6f 6e 6c 79 20 6f 6e | 65 20 6c 69 6e 65 20 74 | only on|e line t|
|00002180| 68 65 6e 0a 58 20 20 20 | 20 5c 67 6c 6f 62 61 6c |hen.X | \global|
|00002190| 5c 73 65 74 62 6f 78 5c | 40 63 61 70 62 6f 78 3d |\setbox\|@capbox=|
|000021a0| 5c 76 62 6f 78 5c 62 67 | 72 6f 75 70 20 20 20 20 |\vbox\bg|roup |
|000021b0| 20 20 20 20 20 25 20 72 | 65 73 65 74 20 63 61 70 | % r|eset cap|
|000021c0| 74 69 6f 6e 20 62 6f 78 | 0a 58 20 20 20 20 20 20 |tion box|.X |
|000021d0| 20 5c 6e 6f 69 6e 64 65 | 6e 74 20 20 20 20 20 20 | \noinde|nt |
|000021e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021f0| 20 20 20 20 20 20 20 20 | 20 20 25 20 6e 6f 20 69 | | % no i|
|00002200| 6e 64 65 6e 74 0a 58 20 | 20 20 20 20 20 20 5c 68 |ndent.X | \h|
|00002210| 66 69 6c 7b 5c 62 66 20 | 5c 43 61 70 74 69 6f 6e |fil{\bf |\Caption|
|00002220| 4e 61 6d 65 7e 5c 40 49 | 44 3a 5c 73 70 61 63 65 |Name~\@I|D:\space|
|00002230| 7d 25 20 20 20 20 20 25 | 20 6c 61 62 65 6c 20 60 |}% %| label `|
|00002240| 60 46 69 67 75 72 65 7e | 6e 6e 6e 27 27 0a 58 20 |`Figure~|nnn''.X |
|00002250| 20 20 20 20 20 20 23 31 | 5c 68 66 69 6c 5c 65 67 | #1|\hfil\eg|
|00002260| 72 6f 75 70 20 20 20 20 | 20 20 20 20 20 20 20 20 |roup | |
|00002270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|00002280| 20 77 69 74 68 20 63 65 | 6e 74 65 72 69 6e 67 20 | with ce|ntering |
|00002290| 67 6c 75 65 0a 58 20 20 | 20 5c 66 69 20 20 20 20 |glue.X | \fi |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022c0| 20 20 20 20 20 20 25 0a | 58 20 20 20 5c 64 65 66 | %.|X \def|
|000022d0| 5c 40 69 6e 43 61 70 74 | 69 6f 6e 7b 46 7d 25 20 |\@inCapt|ion{F}% |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022f0| 20 20 20 20 20 20 20 20 | 20 25 20 6e 6f 20 6c 6f | | % no lo|
|00002300| 6e 67 65 72 20 69 6e 20 | 63 61 70 74 69 6f 6e 0a |nger in |caption.|
|00002310| 58 20 20 20 5c 69 66 20 | 4e 5c 40 77 68 65 72 65 |X \if |N\@where|
|00002320| 43 61 70 5c 64 65 66 5c | 40 77 68 65 72 65 43 61 |Cap\def\|@whereCa|
|00002330| 70 7b 42 7d 5c 66 69 20 | 20 20 20 20 20 20 20 20 |p{B}\fi | |
|00002340| 20 25 20 6e 6f 74 20 74 | 6f 70 2c 20 73 6f 20 62 | % not t|op, so b|
|00002350| 6f 74 74 6f 6d 0a 58 20 | 20 20 5c 69 66 20 54 5c |ottom.X | \if T\|
|00002360| 40 77 68 65 72 65 43 61 | 70 20 20 20 20 20 20 20 |@whereCa|p |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002380| 20 20 20 20 20 20 20 25 | 20 69 66 20 74 6f 70 20 | %| if top |
|00002390| 63 61 70 74 69 6f 6e 20 | 74 68 65 6e 0a 58 20 20 |caption |then.X |
|000023a0| 20 20 20 5c 63 65 6e 74 | 65 72 6c 69 6e 65 7b 5c | \cent|erline{\|
|000023b0| 62 6f 78 5c 40 63 61 70 | 62 6f 78 7d 25 20 20 20 |box\@cap|box}% |
|000023c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|000023d0| 20 20 70 72 69 6e 74 20 | 69 74 0a 58 20 20 20 20 | print |it.X |
|000023e0| 20 5c 76 73 6b 69 70 5c | 62 61 73 65 6c 69 6e 65 | \vskip\|baseline|
|000023f0| 73 6b 69 70 5c 6d 65 64 | 73 6b 69 70 20 20 20 20 |skip\med|skip |
|00002400| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 20 20 | | % |
|00002410| 77 69 74 68 20 73 70 61 | 63 65 20 62 65 6c 6f 77 |with spa|ce below|
|00002420| 0a 58 20 20 20 5c 66 69 | 20 20 20 20 20 20 20 20 |.X \fi| |
|00002430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002450| 20 20 25 0a 58 20 20 20 | 7d 0a 58 0a 58 5c 64 65 | %.X |}.X.X\de|
|00002460| 66 5c 40 69 6e 43 61 70 | 74 69 6f 6e 7b 46 7d 25 |f\@inCap|tion{F}%|
|00002470| 20 20 20 20 20 64 65 66 | 61 75 6c 74 0a 58 20 20 | def|ault.X |
|00002480| 20 20 20 0a 58 5c 6c 6f | 6e 67 5c 64 65 66 5c 43 | .X\lo|ng\def\C|
|00002490| 61 70 74 69 6f 6e 23 31 | 5c 65 6e 64 43 61 70 74 |aption#1|\endCapt|
|000024a0| 69 6f 6e 7b 5c 63 61 70 | 74 69 6f 6e 7b 23 31 7d |ion{\cap|tion{#1}|
|000024b0| 7d 0a 58 0a 58 5c 64 65 | 66 5c 65 6e 64 43 61 70 |}.X.X\de|f\endCap|
|000024c0| 74 69 6f 6e 7b 5c 65 6d | 73 67 7b 3e 20 5c 4e 58 |tion{\em|sg{> \NX|
|000024d0| 5c 65 6e 64 43 61 70 74 | 69 6f 6e 20 63 61 6c 6c |\endCapt|ion call|
|000024e0| 65 64 20 62 65 66 6f 72 | 65 20 5c 4e 58 5c 43 61 |ed befor|e \NX\Ca|
|000024f0| 70 74 69 6f 6e 2e 7d 7d | 0a 58 5c 64 65 66 5c 65 |ption.}}|.X\def\e|
|00002500| 6e 64 63 61 70 74 69 6f | 6e 7b 5c 65 6d 73 67 7b |ndcaptio|n{\emsg{|
|00002510| 3e 20 74 72 79 20 75 73 | 69 6e 67 20 5c 4e 58 5c |> try us|ing \NX\|
|00002520| 63 61 70 74 69 6f 6e 7b | 20 74 65 78 74 2e 2e 2e |caption{| text...|
|00002530| 20 7d 7d 7d 0a 58 0a 58 | 25 3d 3d 3d 3d 3d 3d 3d | }}}.X.X|%=======|
|00002540| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002550| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002560| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002570| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 2a |========|=======*|
|00002580| 0a 58 25 20 54 41 42 4c | 45 53 2e 0a 58 25 20 20 |.X% TABL|ES..X% |
|00002590| 20 20 20 20 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 | The| followi|
|000025a0| 6e 67 20 6d 61 63 72 6f | 73 20 69 6e 73 65 72 74 |ng macro|s insert|
|000025b0| 20 74 61 62 6c 65 73 20 | 61 6e 64 20 64 65 66 69 | tables |and defi|
|000025c0| 6e 65 20 74 61 67 73 20 | 66 6f 72 20 74 68 65 6d |ne tags |for them|
|000025d0| 20 66 6f 72 0a 58 25 20 | 66 75 74 75 72 65 20 72 | for.X% |future r|
|000025e0| 65 66 65 72 65 6e 63 65 | 3a 0a 58 20 20 20 20 20 |eference|:.X |
|000025f0| 0a 58 5c 6c 6f 6e 67 5c | 64 65 66 5c 74 61 62 6c |.X\long\|def\tabl|
|00002600| 65 7b 5c 40 74 61 62 6c | 65 5c 74 6f 70 69 6e 73 |e{\@tabl|e\topins|
|00002610| 65 72 74 7d 0a 58 5c 6c | 6f 6e 67 5c 64 65 66 5c |ert}.X\l|ong\def\|
|00002620| 74 6f 70 74 61 62 6c 65 | 7b 5c 40 74 61 62 6c 65 |toptable|{\@table|
|00002630| 5c 74 6f 70 69 6e 73 65 | 72 74 7d 20 25 20 73 79 |\topinse|rt} % sy|
|00002640| 6e 6f 6e 79 6d 0a 58 5c | 6c 6f 6e 67 5c 64 65 66 |nonym.X\|long\def|
|00002650| 5c 6d 69 64 74 61 62 6c | 65 7b 5c 40 74 61 62 6c |\midtabl|e{\@tabl|
|00002660| 65 5c 6d 69 64 69 6e 73 | 65 72 74 7d 0a 58 5c 6c |e\midins|ert}.X\l|
|00002670| 6f 6e 67 5c 64 65 66 5c | 66 75 6c 6c 74 61 62 6c |ong\def\|fulltabl|
|00002680| 65 7b 5c 40 74 61 62 6c | 65 5c 70 61 67 65 69 6e |e{\@tabl|e\pagein|
|00002690| 73 65 72 74 7d 0a 58 20 | 20 20 20 20 0a 58 5c 6c |sert}.X | .X\l|
|000026a0| 6f 6e 67 5c 64 65 66 5c | 77 69 64 65 74 61 62 6c |ong\def\|widetabl|
|000026b0| 65 7b 5c 40 74 61 62 6c | 65 5c 77 69 64 65 74 6f |e{\@tabl|e\wideto|
|000026c0| 70 69 6e 73 65 72 74 7d | 0a 58 5c 6c 6f 6e 67 5c |pinsert}|.X\long\|
|000026d0| 64 65 66 5c 77 69 64 65 | 74 6f 70 74 61 62 6c 65 |def\wide|toptable|
|000026e0| 7b 5c 40 74 61 62 6c 65 | 5c 77 69 64 65 74 6f 70 |{\@table|\widetop|
|000026f0| 69 6e 73 65 72 74 7d 0a | 58 5c 6c 6f 6e 67 5c 64 |insert}.|X\long\d|
|00002700| 65 66 5c 77 69 64 65 66 | 75 6c 6c 74 61 62 6c 65 |ef\widef|ulltable|
|00002710| 7b 5c 40 74 61 62 6c 65 | 5c 77 69 64 65 70 61 67 |{\@table|\widepag|
|00002720| 65 69 6e 73 65 72 74 7d | 0a 58 20 20 20 20 20 0a |einsert}|.X .|
|00002730| 58 5c 6c 65 74 5c 74 6f | 70 54 61 62 6c 65 3d 5c |X\let\to|pTable=\|
|00002740| 74 6f 70 74 61 62 6c 65 | 20 20 20 20 20 20 20 20 |toptable| |
|00002750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002760| 20 25 20 73 79 6e 6f 6e | 79 6d 20 28 32 2e 31 31 | % synon|ym (2.11|
|00002770| 29 0a 58 5c 6c 65 74 5c | 6d 69 64 54 61 62 6c 65 |).X\let\|midTable|
|00002780| 3d 5c 6d 69 64 74 61 62 | 6c 65 20 20 20 20 20 20 |=\midtab|le |
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027a0| 20 20 20 25 20 73 79 6e | 6f 6e 79 6d 20 28 32 2e | % syn|onym (2.|
|000027b0| 31 31 29 0a 58 5c 6c 65 | 74 5c 66 75 6c 6c 54 61 |11).X\le|t\fullTa|
|000027c0| 62 6c 65 3d 5c 66 75 6c | 6c 74 61 62 6c 65 20 20 |ble=\ful|ltable |
|000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027e0| 20 20 20 20 20 25 20 73 | 79 6e 6f 6e 79 6d 20 28 | % s|ynonym (|
|000027f0| 32 2e 31 31 29 0a 58 5c | 6c 65 74 5c 54 4f 50 54 |2.11).X\|let\TOPT|
|00002800| 41 42 4c 45 3d 5c 74 6f | 70 74 61 62 6c 65 20 20 |ABLE=\to|ptable |
|00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002820| 20 20 20 20 20 20 20 25 | 20 73 79 6e 6f 6e 79 6d | %| synonym|
|00002830| 20 28 32 2e 31 31 29 0a | 58 5c 6c 65 74 5c 4d 49 | (2.11).|X\let\MI|
|00002840| 44 54 41 42 4c 45 3d 5c | 6d 69 64 74 61 62 6c 65 |DTABLE=\|midtable|
|00002850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002860| 20 20 20 20 20 20 20 20 | 20 25 20 73 79 6e 6f 6e | | % synon|
|00002870| 79 6d 20 28 32 2e 31 31 | 29 0a 58 5c 6c 65 74 5c |ym (2.11|).X\let\|
|00002880| 46 55 4c 4c 54 41 42 4c | 45 3d 5c 66 75 6c 6c 74 |FULLTABL|E=\fullt|
|00002890| 61 62 6c 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |able | |
|000028a0| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 73 79 6e | | % syn|
|000028b0| 6f 6e 79 6d 20 28 32 2e | 31 31 29 0a 58 20 20 20 |onym (2.|11).X |
|000028c0| 20 20 0a 58 25 20 20 20 | 5c 40 74 61 62 6c 65 20 | .X% |\@table |
|000028d0| 69 73 20 74 68 65 20 67 | 65 6e 65 72 69 63 20 74 |is the g|eneric t|
|000028e0| 61 62 6c 65 20 6d 61 6b | 69 6e 67 20 6d 61 63 72 |able mak|ing macr|
|000028f0| 6f 2e 20 49 74 20 61 6c | 73 6f 20 63 61 6c 6c 73 |o. It al|so calls|
|00002900| 20 5c 40 66 69 6e 64 63 | 61 70 2c 0a 58 25 20 77 | \@findc|ap,.X% w|
|00002910| 68 69 63 68 20 6c 6f 6f | 6b 73 20 74 6f 20 73 65 |hich loo|ks to se|
|00002920| 65 20 69 66 20 61 20 5c | 43 61 70 74 69 6f 6e 20 |e if a \|Caption |
|00002930| 63 6f 6d 65 73 20 66 69 | 72 73 74 20 61 6e 64 20 |comes fi|rst and |
|00002940| 61 63 74 73 20 61 63 63 | 6f 72 64 69 6e 67 6c 79 |acts acc|ordingly|
|00002950| 2e 0a 58 20 20 20 20 20 | 0a 58 5c 64 65 66 5c 40 |..X |.X\def\@|
|00002960| 74 61 62 6c 65 23 31 23 | 32 7b 25 20 67 65 6e 65 |table#1#|2{% gene|
|00002970| 72 69 63 20 70 72 6f 63 | 65 73 73 69 6e 67 20 6f |ric proc|essing o|
|00002980| 66 20 74 61 62 6c 65 0a | 58 20 20 5c 76 73 6b 69 |f table.|X \vski|
|00002990| 70 20 30 70 74 20 20 20 | 20 20 20 20 20 20 20 20 |p 0pt | |
|000029a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029b0| 20 20 20 20 20 20 20 20 | 20 25 20 66 6f 72 63 65 | | % force|
|000029c0| 20 76 65 72 74 69 61 6c | 20 6d 6f 64 65 20 61 6e | vertial| mode an|
|000029d0| 64 20 61 6e 63 68 6f 72 | 0a 58 20 20 5c 62 65 67 |d anchor|.X \beg|
|000029e0| 69 6e 67 72 6f 75 70 20 | 20 20 20 20 20 20 20 20 |ingroup | |
|000029f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a00| 20 20 20 20 20 20 20 20 | 20 20 25 0a 58 20 20 20 | | %.X |
|00002a10| 5c 64 65 66 5c 43 61 70 | 74 69 6f 6e 4e 61 6d 65 |\def\Cap|tionName|
|00002a20| 7b 54 61 62 6c 65 7d 25 | 20 20 20 20 20 20 20 20 |{Table}%| |
|00002a30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 74 | | % t|
|00002a40| 79 70 65 20 6f 66 20 69 | 6e 73 65 72 74 20 69 73 |ype of i|nsert is|
|00002a50| 20 60 60 54 61 62 6c 65 | 27 27 0a 58 20 20 20 5c | ``Table|''.X \|
|00002a60| 64 65 66 5c 40 70 72 65 | 66 69 78 7b 54 62 2e 7d |def\@pre|fix{Tb.}|
|00002a70| 25 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |% | |
|00002a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 70 72 | | % pr|
|00002a90| 65 66 69 78 20 66 6f 72 | 20 74 61 67 67 69 6e 67 |efix for| tagging|
|00002aa0| 20 6c 61 62 65 6c 73 0a | 58 20 20 20 5c 6c 65 74 | labels.|X \let|
|00002ab0| 5c 40 63 6f 75 6e 74 3d | 5c 74 61 62 6e 75 6d 20 |\@count=|\tabnum |
|00002ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ad0| 20 20 20 20 20 20 20 20 | 20 25 20 63 6f 75 6e 74 | | % count|
|00002ae0| 65 72 20 69 73 20 5c 66 | 69 67 6e 75 6d 0a 58 20 |er is \f|ignum.X |
|00002af0| 20 20 5c 69 66 20 3f 23 | 32 3f 5c 72 65 6c 61 78 | \if ?#|2?\relax|
|00002b00| 20 5c 64 65 66 5c 40 49 | 44 7b 7d 25 20 20 20 20 | \def\@I|D{}% |
|00002b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|00002b20| 20 69 66 20 6e 6f 20 6c | 61 62 65 6c 20 5c 40 49 | if no l|abel \@I|
|00002b30| 44 20 69 73 20 6e 75 6c | 6c 0a 58 20 20 20 5c 65 |D is nul|l.X \e|
|00002b40| 6c 73 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |lse | |
|00002b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b60| 20 20 20 20 20 20 20 20 | 20 20 20 25 0a 58 20 20 | | %.X |
|00002b70| 20 20 20 5c 69 66 52 6f | 6d 61 6e 54 61 62 6c 65 | \ifRo|manTable|
|00002b80| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s | |
|00002b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|00002ba0| 69 66 20 52 6f 6d 61 6e | 20 6e 75 6d 62 65 72 20 |if Roman| number |
|00002bb0| 74 61 62 6c 65 73 0a 58 | 20 20 20 20 20 20 5c 67 |tables.X| \g|
|00002bc0| 6c 6f 62 61 6c 5c 61 64 | 76 61 6e 63 65 5c 40 63 |lobal\ad|vance\@c|
|00002bd0| 6f 75 6e 74 20 62 79 5c | 40 6e 65 20 20 20 20 20 |ount by\|@ne |
|00002be0| 20 20 20 20 20 20 20 20 | 25 20 20 20 61 64 76 61 | |% adva|
|00002bf0| 6e 63 65 20 63 6f 75 6e | 74 0a 58 20 20 20 20 20 |nce coun|t.X |
|00002c00| 20 5c 65 64 65 66 5c 40 | 49 44 7b 5c 75 70 70 65 | \edef\@|ID{\uppe|
|00002c10| 72 63 61 73 65 5c 65 78 | 70 61 6e 64 61 66 74 65 |rcase\ex|pandafte|
|00002c20| 72 20 20 20 20 20 20 20 | 20 20 20 25 20 20 20 64 |r | % d|
|00002c30| 65 66 69 6e 65 20 5c 40 | 49 44 20 61 73 20 75 70 |efine \@|ID as up|
|00002c40| 70 65 72 63 61 73 65 0a | 58 20 20 20 20 20 20 20 |percase.|X |
|00002c50| 20 20 7b 5c 72 6f 6d 61 | 6e 6e 75 6d 65 72 61 6c | {\roma|nnumeral|
|00002c60| 5c 74 68 65 5c 40 63 6f | 75 6e 74 7d 7d 25 20 20 |\the\@co|unt}}% |
|00002c70| 20 20 20 20 20 20 20 20 | 20 25 20 20 20 52 6f 6d | | % Rom|
|00002c80| 61 6e 20 6e 75 6d 65 72 | 61 6c 73 0a 58 20 20 20 |an numer|als.X |
|00002c90| 20 20 20 5c 74 61 67 7b | 5c 40 70 72 65 66 69 78 | \tag{|\@prefix|
|00002ca0| 23 32 7d 7b 5c 40 49 44 | 7d 25 20 20 20 20 20 20 |#2}{\@ID|}% |
|00002cb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 20 | | % |
|00002cc0| 20 61 6e 64 20 74 61 67 | 20 69 74 0a 58 20 20 20 | and tag| it.X |
|00002cd0| 20 20 5c 65 6c 73 65 20 | 20 20 20 20 20 20 20 20 | \else | |
|00002ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 0a 58 | | %.X|
|00002d00| 20 20 20 20 20 20 20 5c | 4c 61 62 65 6c 50 61 72 | \|LabelPar|
|00002d10| 73 65 20 23 32 3b 3b 5c | 65 6e 64 6c 69 73 74 5c |se #2;;\|endlist\|
|00002d20| 66 69 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |fi | |
|00002d30| 25 20 65 6c 73 65 20 70 | 61 72 73 65 20 6c 61 62 |% else p|arse lab|
|00002d40| 65 6c 20 2d 2d 3e 20 5c | 40 49 44 0a 58 20 20 20 |el --> \|@ID.X |
|00002d50| 5c 66 69 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |\fi | |
|00002d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 0a 58 | | %.X|
|00002d80| 20 20 20 5c 69 66 54 61 | 62 73 4c 61 73 74 20 20 | \ifTa|bsLast |
|00002d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002db0| 25 20 53 61 76 65 20 54 | 61 62 6c 65 73 20 74 69 |% Save T|ables ti|
|00002dc0| 6c 20 65 6e 64 3f 0a 58 | 20 20 20 20 5c 65 6d 73 |l end?.X| \ems|
|00002dd0| 67 7b 5c 43 61 70 74 69 | 6f 6e 4e 61 6d 65 5c 73 |g{\Capti|onName\s|
|00002de0| 70 61 63 65 5c 40 49 44 | 2e 20 7b 23 32 7d 20 5b |pace\@ID|. {#2} [|
|00002df0| 73 74 6f 72 69 6e 67 20 | 69 6e 20 5c 6a 6f 62 6e |storing |in \jobn|
|00002e00| 61 6d 65 2e 74 62 5d 7d | 25 20 2e 6c 6f 67 20 69 |ame.tb]}|% .log i|
|00002e10| 74 0a 58 20 20 20 20 5c | 40 74 62 77 72 69 74 65 |t.X \|@tbwrite|
|00002e20| 7b 5c 40 63 6f 6d 6d 65 | 6e 74 3e 20 5c 43 61 70 |{\@comme|nt> \Cap|
|00002e30| 74 69 6f 6e 4e 61 6d 65 | 5c 73 70 61 63 65 5c 40 |tionName|\space\@|
|00002e40| 49 44 2e 5c 73 70 61 63 | 65 7b 23 32 7d 7d 25 20 |ID.\spac|e{#2}}% |
|00002e50| 77 72 69 74 65 20 74 61 | 62 6c 65 20 6e 75 6d 62 |write ta|ble numb|
|00002e60| 65 72 0a 58 20 20 20 20 | 5c 40 74 62 77 72 69 74 |er.X |\@tbwrit|
|00002e70| 65 7b 5c 4e 58 5c 40 46 | 69 67 75 72 65 49 74 65 |e{\NX\@F|igureIte|
|00002e80| 6d 7b 5c 43 61 70 74 69 | 6f 6e 4e 61 6d 65 7d 7b |m{\Capti|onName}{|
|00002e90| 5c 40 49 44 7d 7b 5c 4e | 58 23 31 7d 7d 25 20 25 |\@ID}{\N|X#1}}% %|
|00002ea0| 20 74 6f 20 74 68 65 20 | 74 61 62 6c 65 20 66 69 | to the |table fi|
|00002eb0| 6c 65 0a 58 20 20 20 20 | 5c 6e 65 77 6c 69 6e 65 |le.X |\newline|
|00002ec0| 63 68 61 72 3d 60 5c 5e | 5e 4d 20 20 20 20 20 20 |char=`\^|^M |
|00002ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ee0| 20 20 20 20 25 20 3c 43 | 52 3e 20 62 72 65 61 6b | % <C|R> break|
|00002ef0| 73 20 6c 69 6e 65 73 20 | 69 6e 20 66 69 6c 65 20 |s lines |in file |
|00002f00| 6f 75 74 70 75 74 0a 58 | 20 20 20 20 5c 6f 62 65 |output.X| \obe|
|00002f10| 79 6c 69 6e 65 73 20 20 | 20 20 20 20 20 20 20 20 |ylines | |
|00002f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f30| 20 20 20 20 20 20 20 20 | 25 20 74 6f 20 73 65 65 | |% to see|
|00002f40| 20 5e 5e 4d 0a 58 20 20 | 20 20 5c 6c 65 74 5c 40 | ^^M.X | \let\@|
|00002f50| 6e 65 78 74 3d 5c 40 63 | 6f 70 79 74 61 62 20 20 |next=\@c|opytab |
|00002f60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f70| 20 20 20 20 20 20 25 20 | 67 6f 20 63 6f 70 79 20 | % |go copy |
|00002f80| 66 69 67 75 72 65 20 74 | 65 78 74 20 74 6f 20 66 |figure t|ext to f|
|00002f90| 69 6c 65 0a 58 20 20 20 | 5c 65 6c 73 65 20 20 20 |ile.X |\else |
|00002fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002fc0| 20 20 20 20 20 25 20 73 | 61 76 65 20 66 69 67 75 | % s|ave figu|
|00002fd0| 72 65 20 69 6e 20 2e 66 | 67 20 66 69 6c 65 0a 58 |re in .f|g file.X|
|00002fe0| 20 20 20 20 23 31 5c 72 | 65 6c 61 78 20 20 20 20 | #1\r|elax |
|00002ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003010| 25 20 64 6f 20 74 68 65 | 20 69 6e 73 65 72 74 0a |% do the| insert.|
|00003020| 58 20 20 20 20 5c 73 65 | 74 62 6f 78 5c 40 63 61 |X \se|tbox\@ca|
|00003030| 70 62 6f 78 5c 76 62 6f | 78 20 74 6f 20 30 70 74 |pbox\vbo|x to 0pt|
|00003040| 7b 7d 25 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{}% | |
|00003050| 20 25 20 63 6c 65 61 72 | 73 20 63 61 70 74 69 6f | % clear|s captio|
|00003060| 6e 20 69 6e 20 5c 40 63 | 61 70 62 6f 78 0a 58 20 |n in \@c|apbox.X |
|00003070| 20 20 20 5c 64 65 66 5c | 40 77 68 65 72 65 43 61 | \def\|@whereCa|
|00003080| 70 7b 4e 7d 25 20 20 20 | 20 20 20 20 20 20 20 20 |p{N}% | |
|00003090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|000030a0| 20 6e 6f 20 63 61 70 74 | 69 6f 6e 20 28 79 65 74 | no capt|ion (yet|
|000030b0| 29 0a 58 20 20 20 20 5c | 65 6d 73 67 7b 5c 43 61 |).X \|emsg{\Ca|
|000030c0| 70 74 69 6f 6e 4e 61 6d | 65 5c 20 5c 40 49 44 2e |ptionNam|e\ \@ID.|
|000030d0| 5c 20 7b 23 32 7d 7d 25 | 20 20 20 20 20 20 20 20 |\ {#2}}%| |
|000030e0| 20 20 20 25 20 61 6e 6e | 6f 75 6e 63 65 20 69 6e | % ann|ounce in|
|000030f0| 20 2e 6c 6f 67 0a 58 20 | 20 20 20 5c 6c 65 74 5c | .log.X | \let\|
|00003100| 65 6e 64 74 61 62 6c 65 | 3d 5c 40 65 6e 64 66 69 |endtable|=\@endfi|
|00003110| 67 75 72 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |gure | |
|00003120| 20 20 20 20 20 20 20 25 | 20 68 6f 77 20 74 6f 20 | %| how to |
|00003130| 71 75 69 74 0a 58 20 20 | 20 20 5c 6c 65 74 5c 65 |quit.X | \let\e|
|00003140| 6e 64 54 61 62 6c 65 3d | 5c 40 65 6e 64 66 69 67 |ndTable=|\@endfig|
|00003150| 75 72 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ure | |
|00003160| 20 20 20 20 20 20 25 20 | 68 6f 77 20 74 6f 20 71 | % |how to q|
|00003170| 75 69 74 0a 58 20 20 20 | 20 5c 6c 65 74 5c 45 4e |uit.X | \let\EN|
|00003180| 44 54 41 42 4c 45 3d 5c | 40 65 6e 64 66 69 67 75 |DTABLE=\|@endfigu|
|00003190| 72 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |re | |
|000031a0| 20 20 20 20 20 25 20 68 | 6f 77 20 74 6f 20 71 75 | % h|ow to qu|
|000031b0| 69 74 0a 58 20 20 20 20 | 5c 6c 65 74 5c 40 6e 65 |it.X |\let\@ne|
|000031c0| 78 74 3d 5c 40 66 69 6e | 64 63 61 70 20 20 20 20 |xt=\@fin|dcap |
|000031d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000031e0| 20 20 20 20 25 20 6c 6f | 6f 6b 20 66 6f 72 20 5c | % lo|ok for \|
|000031f0| 63 61 70 74 69 6f 6e 20 | 6f 72 20 5c 43 61 70 74 |caption |or \Capt|
|00003200| 69 6f 6e 0a 58 20 20 20 | 5c 66 69 20 20 20 20 20 |ion.X |\fi |
|00003210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003230| 20 20 20 20 20 25 0a 58 | 20 20 20 5c 40 6e 65 78 | %.X| \@nex|
|00003240| 74 7d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t} | |
|00003250| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003260| 20 20 20 20 20 20 20 20 | 0a 58 0a 58 0a 58 5c 64 | |.X.X.X\d|
|00003270| 65 66 5c 65 6e 64 74 61 | 62 6c 65 7b 5c 65 6d 73 |ef\endta|ble{\ems|
|00003280| 67 7b 3e 20 5c 4e 58 5c | 65 6e 64 74 61 62 6c 65 |g{> \NX\|endtable|
|00003290| 20 62 65 66 6f 72 65 20 | 5c 4e 58 5c 74 61 62 6c | before |\NX\tabl|
|000032a0| 65 21 7d 7d 0a 58 5c 64 | 65 66 5c 65 6e 64 54 61 |e!}}.X\d|ef\endTa|
|000032b0| 62 6c 65 7b 5c 65 6e 64 | 74 61 62 6c 65 7d 20 20 |ble{\end|table} |
|000032c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032d0| 20 20 20 20 25 20 73 79 | 6e 6f 6e 79 6d 20 28 32 | % sy|nonym (2|
|000032e0| 2e 31 31 29 0a 58 5c 64 | 65 66 5c 45 4e 44 54 41 |.11).X\d|ef\ENDTA|
|000032f0| 42 4c 45 7b 5c 65 6e 64 | 74 61 62 6c 65 7d 20 20 |BLE{\end|table} |
|00003300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003310| 20 20 20 20 25 20 73 79 | 6e 6f 6e 79 6d 20 28 32 | % sy|nonym (2|
|00003320| 2e 31 31 29 0a 58 0a 58 | 25 3d 3d 3d 3d 3d 3d 3d |.11).X.X|%=======|
|00003330| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003340| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003350| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003360| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 2a |========|=======*|
|00003370| 0a 58 25 20 20 52 55 4c | 45 44 20 54 41 42 4c 45 |.X% RUL|ED TABLE|
|00003380| 53 2e 0a 58 25 0a 58 25 | 20 20 20 20 54 68 65 20 |S..X%.X%| The |
|00003390| 6d 61 63 72 6f 73 20 69 | 6e 20 54 58 53 72 75 6c |macros i|n TXSrul|
|000033a0| 65 64 2e 74 65 78 20 63 | 61 6e 20 62 65 20 75 73 |ed.tex c|an be us|
|000033b0| 65 64 20 74 6f 20 74 79 | 70 65 73 65 74 20 74 61 |ed to ty|peset ta|
|000033c0| 62 6c 65 73 20 77 69 74 | 68 20 76 65 72 74 69 63 |bles wit|h vertic|
|000033d0| 61 6c 0a 58 25 20 61 6e | 64 20 68 6f 72 69 7a 6f |al.X% an|d horizo|
|000033e0| 6e 74 61 6c 20 72 75 6c | 65 73 2e 20 20 54 68 65 |ntal rul|es. The|
|000033f0| 20 73 79 6e 74 61 78 20 | 69 73 20 74 68 65 20 73 | syntax |is the s|
|00003400| 61 6d 65 20 61 73 20 66 | 6f 72 20 52 61 79 20 43 |ame as f|or Ray C|
|00003410| 6f 77 61 6e 27 73 20 6d | 61 63 72 6f 73 0a 58 25 |owan's m|acros.X%|
|00003420| 20 54 41 42 4c 45 53 2e | 54 45 58 2c 20 61 73 20 | TABLES.|TEX, as |
|00003430| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 54 41 42 |describe|d in TAB|
|00003440| 45 4c 44 4f 43 2e 54 45 | 58 2c 20 61 6e 64 20 20 |ELDOC.TE|X, and |
|00003450| 49 20 68 61 76 65 20 75 | 73 65 64 20 73 6f 6d 65 |I have u|sed some|
|00003460| 20 6f 66 20 43 6f 77 61 | 6e 27 73 0a 58 25 20 74 | of Cowa|n's.X% t|
|00003470| 72 69 63 6b 73 2c 20 62 | 75 74 20 6d 6f 73 74 20 |ricks, b|ut most |
|00003480| 6f 66 20 74 68 65 20 6d | 61 63 72 6f 73 20 61 72 |of the m|acros ar|
|00003490| 65 20 63 6f 6d 70 6c 65 | 74 65 20 72 65 2d 77 72 |e comple|te re-wr|
|000034a0| 69 74 65 73 2e 20 20 2d | 45 41 4d 0a 58 25 0a 58 |ites. -|EAM.X%.X|
|000034b0| 25 20 54 58 53 72 75 6c | 65 64 2e 74 65 78 20 69 |% TXSrul|ed.tex i|
|000034c0| 73 20 6e 6f 77 20 6c 6f | 61 64 65 64 20 64 69 72 |s now lo|aded dir|
|000034d0| 65 63 74 6c 79 20 62 79 | 20 74 65 78 73 69 73 2e |ectly by| texsis.|
|000034e0| 74 65 78 0a 58 0a 58 25 | 3d 3d 3d 3d 3d 3d 3d 3d |tex.X.X%|========|
|000034f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003500| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003510| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003520| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 2a 0a |========|======*.|
|00003530| 58 25 20 53 49 4d 50 4c | 45 20 52 55 4c 45 44 20 |X% SIMPL|E RULED |
|00003540| 54 41 42 4c 45 53 3a 20 | 20 5c 54 61 62 6c 65 62 |TABLES: | \Tableb|
|00003550| 6f 64 79 0a 58 25 0a 58 | 25 20 20 20 20 5c 54 61 |ody.X%.X|% \Ta|
|00003560| 62 6c 65 62 6f 64 79 20 | 68 61 73 20 62 65 65 6e |blebody |has been|
|00003570| 20 70 68 61 73 65 64 20 | 6f 75 74 20 6f 66 20 54 | phased |out of T|
|00003580| 65 58 73 69 73 20 69 6e | 20 66 61 76 6f 75 72 20 |eXsis in| favour |
|00003590| 6f 66 20 54 58 53 72 75 | 6c 65 64 2e 74 65 78 2c |of TXSru|led.tex,|
|000035a0| 0a 58 25 20 77 68 69 63 | 68 20 61 72 65 20 6d 75 |.X% whic|h are mu|
|000035b0| 63 68 20 62 65 74 74 65 | 72 20 66 6f 72 20 6d 61 |ch bette|r for ma|
|000035c0| 6b 69 6e 67 20 72 75 6c | 65 64 20 74 61 62 6c 65 |king rul|ed table|
|000035d0| 73 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 69 66 20 |s. Howe|ver, if |
|000035e0| 73 6f 6d 65 6f 6e 65 0a | 58 25 20 77 61 6e 74 73 |someone.|X% wants|
|000035f0| 20 74 6f 20 73 65 65 20 | 61 6e 20 6f 6c 64 65 72 | to see |an older|
|00003600| 20 64 6f 63 75 6d 65 6e | 74 20 74 68 61 74 20 75 | documen|t that u|
|00003610| 73 65 64 20 5c 54 61 62 | 6c 65 62 6f 64 79 20 77 |sed \Tab|lebody w|
|00003620| 65 20 64 6f 6e 27 74 20 | 77 61 6e 74 0a 58 25 20 |e don't |want.X% |
|00003630| 74 6f 20 64 69 73 61 70 | 70 6f 69 6e 74 20 74 68 |to disap|point th|
|00003640| 65 6d 2e 20 20 48 65 6e | 63 65 20 77 65 20 61 75 |em. Hen|ce we au|
|00003650| 74 6f 6c 6f 61 64 20 5c | 54 61 62 6c 65 62 6f 64 |toload \|Tablebod|
|00003660| 79 20 66 72 6f 6d 20 61 | 20 73 74 79 6c 65 20 66 |y from a| style f|
|00003670| 69 6c 65 0a 58 25 20 69 | 66 20 6e 65 65 64 65 64 |ile.X% i|f needed|
|00003680| 2e 0a 58 0a 58 5c 61 75 | 74 6f 6c 6f 61 64 5c 54 |..X.X\au|toload\T|
|00003690| 61 62 6c 65 62 6f 64 79 | 7b 54 61 62 6c 65 62 6f |ablebody|{Tablebo|
|000036a0| 64 79 2e 74 78 73 7d 0a | 58 5c 61 75 74 6f 6c 6f |dy.txs}.|X\autolo|
|000036b0| 61 64 5c 54 61 62 6c 65 | 62 6f 64 79 6c 65 66 74 |ad\Table|bodyleft|
|000036c0| 7b 54 61 62 6c 65 62 6f | 64 79 2e 74 78 73 7d 20 |{Tablebo|dy.txs} |
|000036d0| 20 20 20 20 20 20 20 20 | 20 0a 58 5c 61 75 74 6f | | .X\auto|
|000036e0| 6c 6f 61 64 5c 74 61 62 | 6c 65 62 6f 64 79 7b 54 |load\tab|lebody{T|
|000036f0| 61 62 6c 65 62 6f 64 79 | 2e 74 78 73 7d 0a 58 0a |ablebody|.txs}.X.|
|00003700| 58 0a 58 25 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |X.X%====|========|
|00003710| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003720| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003730| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003740| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 2a 0a 58 25 20 52 |========|==*.X% R|
|00003750| 45 46 45 52 45 4e 43 49 | 4e 47 20 46 49 47 55 52 |EFERENCI|NG FIGUR|
|00003760| 45 53 20 41 4e 44 20 54 | 41 42 4c 45 53 2e 0a 58 |ES AND T|ABLES..X|
|00003770| 25 20 20 20 20 20 0a 58 | 25 20 20 20 20 20 20 20 |% .X|% |
|00003780| 54 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 75 73 |The foll|owing us|
|00003790| 65 20 74 61 67 73 20 74 | 6f 20 72 65 66 65 72 65 |e tags t|o refere|
|000037a0| 6e 63 65 20 66 69 67 75 | 72 65 73 20 61 6e 64 20 |nce figu|res and |
|000037b0| 74 61 62 6c 65 73 20 69 | 6e 20 74 65 78 74 2e 0a |tables i|n text..|
|000037c0| 58 25 20 46 6f 72 77 61 | 72 64 20 72 65 66 65 72 |X% Forwa|rd refer|
|000037d0| 65 6e 63 65 73 20 61 72 | 65 20 73 61 74 69 73 66 |ences ar|e satisf|
|000037e0| 69 65 64 20 75 73 69 6e | 67 20 74 68 65 20 2e 41 |ied usin|g the .A|
|000037f0| 55 58 20 66 69 6c 65 2e | 0a 58 20 20 20 20 20 0a |UX file.|.X .|
|00003800| 58 5c 64 65 66 5c 46 69 | 67 23 31 7b 46 69 67 2e |X\def\Fi|g#1{Fig.|
|00003810| 7e 5c 75 73 65 7b 46 67 | 2e 23 31 7d 7d 0a 58 5c |~\use{Fg|.#1}}.X\|
|00003820| 64 65 66 5c 46 69 67 73 | 23 31 7b 46 69 67 73 2e |def\Figs|#1{Figs.|
|00003830| 7e 5c 75 73 65 7b 46 67 | 2e 23 31 7d 7d 0a 58 5c |~\use{Fg|.#1}}.X\|
|00003840| 64 65 66 5c 46 67 23 31 | 7b 5c 75 73 65 7b 46 67 |def\Fg#1|{\use{Fg|
|00003850| 2e 23 31 7d 7d 0a 58 5c | 64 65 66 5c 54 61 62 23 |.#1}}.X\|def\Tab#|
|00003860| 31 7b 54 61 62 6c 65 7e | 5c 75 73 65 7b 54 62 2e |1{Table~|\use{Tb.|
|00003870| 23 31 7d 7d 0a 58 5c 64 | 65 66 5c 54 62 6c 23 31 |#1}}.X\d|ef\Tbl#1|
|00003880| 7b 54 61 62 6c 65 7e 5c | 75 73 65 7b 54 62 2e 23 |{Table~\|use{Tb.#|
|00003890| 31 7d 7d 0a 58 20 20 20 | 20 20 0a 58 5c 64 65 66 |1}}.X | .X\def|
|000038a0| 5c 46 49 47 7b 5c 40 6f | 62 73 6f 6c 65 74 65 5c |\FIG{\@o|bsolete\|
|000038b0| 46 49 47 5c 46 69 67 5c | 46 69 67 7d 20 20 20 20 |FIG\Fig\|Fig} |
|000038c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 73 79 | | % sy|
|000038d0| 6e 6f 6e 79 6d 20 28 32 | 2e 31 31 2c 20 74 6f 20 |nonym (2|.11, to |
|000038e0| 62 65 20 72 65 6d 6f 76 | 65 64 29 0a 58 5c 64 65 |be remov|ed).X\de|
|000038f0| 66 5c 54 42 4c 7b 5c 40 | 6f 62 73 6f 6c 65 74 65 |f\TBL{\@|obsolete|
|00003900| 5c 54 42 4c 5c 54 62 6c | 5c 54 62 6c 7d 20 20 20 |\TBL\Tbl|\Tbl} |
|00003910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 73 | | % s|
|00003920| 79 6e 6f 6e 79 6d 20 28 | 32 2e 31 31 2c 20 74 6f |ynonym (|2.11, to|
|00003930| 20 62 65 20 72 65 6d 6f | 76 65 64 29 0a 58 20 20 | be remo|ved).X |
|00003940| 20 20 20 0a 58 25 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | .X%==|========|
|00003950| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003960| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003970| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003980| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 2a 0a 58 25 20 |========|===*.X% |
|00003990| 46 49 47 55 52 45 53 20 | 41 54 20 54 48 45 20 45 |FIGURES |AT THE E|
|000039a0| 4e 44 20 4f 46 20 54 48 | 45 20 44 4f 43 55 4d 45 |ND OF TH|E DOCUME|
|000039b0| 4e 54 2e 20 20 0a 58 25 | 0a 58 25 20 20 73 61 79 |NT. .X%|.X% say|
|000039c0| 69 6e 67 20 5c 46 69 67 | 75 72 65 73 4c 61 73 74 |ing \Fig|uresLast|
|000039d0| 20 73 61 76 65 73 20 61 | 6c 6c 20 66 69 67 75 72 | saves a|ll figur|
|000039e0| 65 73 20 75 70 20 75 6e | 74 69 6c 20 74 68 65 20 |es up un|til the |
|000039f0| 65 6e 64 20 6f 66 20 74 | 68 65 0a 58 25 20 64 6f |end of t|he.X% do|
|00003a00| 63 75 6d 65 6e 74 2c 20 | 77 68 65 72 65 20 79 6f |cument, |where yo|
|00003a10| 75 20 73 61 79 20 5c 50 | 72 69 6e 74 46 69 67 75 |u say \P|rintFigu|
|00003a20| 72 65 73 20 74 6f 20 70 | 72 69 6e 74 20 74 68 65 |res to p|rint the|
|00003a30| 6d 20 6f 75 74 2e 20 20 | 49 66 0a 58 25 20 79 6f |m out. |If.X% yo|
|00003a40| 75 20 73 61 79 20 5c 46 | 69 67 75 72 65 73 4e 6f |u say \F|iguresNo|
|00003a50| 77 20 28 74 68 65 20 64 | 65 66 61 75 6c 74 29 20 |w (the d|efault) |
|00003a60| 74 68 65 20 74 68 65 20 | 66 69 67 75 72 65 73 20 |the the |figures |
|00003a70| 61 72 65 20 69 6e 73 65 | 72 74 65 64 0a 58 25 20 |are inse|rted.X% |
|00003a80| 61 73 20 74 68 65 79 20 | 61 72 65 20 64 65 66 69 |as they |are defi|
|00003a90| 6e 65 64 2c 20 61 6e 64 | 20 5c 50 72 69 6e 74 46 |ned, and| \PrintF|
|00003aa0| 69 67 75 72 65 73 20 68 | 61 73 20 6e 6f 20 65 66 |igures h|as no ef|
|00003ab0| 66 65 63 74 2e 20 53 69 | 6d 69 6c 61 72 6c 79 0a |fect. Si|milarly.|
|00003ac0| 58 25 20 66 6f 72 20 74 | 61 62 6c 65 73 0a 58 25 |X% for t|ables.X%|
|00003ad0| 0a 58 0a 58 5c 6e 65 77 | 69 66 5c 69 66 46 69 67 |.X.X\new|if\ifFig|
|00003ae0| 73 4c 61 73 74 20 20 20 | 20 20 20 20 5c 46 69 67 |sLast | \Fig|
|00003af0| 73 4c 61 73 74 66 61 6c | 73 65 20 20 20 20 20 20 |sLastfal|se |
|00003b00| 20 20 20 20 20 20 20 20 | 20 20 25 20 73 61 76 65 | | % save|
|00003b10| 20 66 69 67 75 72 65 73 | 20 75 6e 74 69 6c 20 65 | figures| until e|
|00003b20| 6e 64 3f 0a 58 0a 58 5c | 64 65 66 5c 46 69 67 75 |nd?.X.X\|def\Figu|
|00003b30| 72 65 73 4c 61 73 74 7b | 5c 46 69 67 73 4c 61 73 |resLast{|\FigsLas|
|00003b40| 74 74 72 75 65 7d 0a 58 | 5c 64 65 66 5c 46 69 67 |ttrue}.X|\def\Fig|
|00003b50| 75 72 65 73 4e 6f 77 7b | 5c 46 69 67 73 4c 61 73 |uresNow{|\FigsLas|
|00003b60| 74 66 61 6c 73 65 7d 0a | 58 0a 58 5c 6e 65 77 77 |tfalse}.|X.X\neww|
|00003b70| 72 69 74 65 5c 66 67 6f | 75 74 20 20 20 20 20 20 |rite\fgo|ut |
|00003b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b90| 20 20 20 20 20 20 20 20 | 20 25 20 66 69 6c 65 20 | | % file |
|00003ba0| 74 6f 20 73 61 76 65 20 | 66 69 67 75 72 65 73 20 |to save |figures |
|00003bb0| 69 6e 0a 58 0a 58 5c 64 | 65 66 5c 40 66 67 69 6e |in.X.X\d|ef\@fgin|
|00003bc0| 69 74 7b 25 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 |it{% ini|tialize |
|00003bd0| 66 69 67 75 72 65 20 66 | 69 6c 65 20 5c 6a 6f 62 |figure f|ile \job|
|00003be0| 6e 61 6d 65 2e 66 67 0a | 58 20 20 20 5c 69 6d 6d |name.fg.|X \imm|
|00003bf0| 65 64 69 61 74 65 5c 6f | 70 65 6e 6f 75 74 5c 66 |ediate\o|penout\f|
|00003c00| 67 6f 75 74 3d 5c 6a 6f | 62 6e 61 6d 65 2e 66 67 |gout=\jo|bname.fg|
|00003c10| 20 5c 72 65 6c 61 78 20 | 20 25 20 79 65 73 3a 20 | \relax | % yes: |
|00003c20| 74 68 65 6e 20 6f 70 65 | 6e 20 66 6f 72 20 6f 75 |then ope|n for ou|
|00003c30| 74 70 75 74 0a 58 20 20 | 20 5c 67 64 65 66 5c 40 |tput.X | \gdef\@|
|00003c40| 66 67 69 6e 69 74 7b 5c | 72 65 6c 61 78 7d 25 20 |fginit{\|relax}% |
|00003c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c60| 20 20 20 20 20 20 25 20 | 61 6e 64 20 64 69 73 61 | % |and disa|
|00003c70| 62 6c 65 20 5c 40 66 67 | 69 6e 69 74 0a 58 20 20 |ble \@fg|init.X |
|00003c80| 20 5c 69 6d 6d 65 64 69 | 61 74 65 5c 77 72 69 74 | \immedi|ate\writ|
|00003c90| 65 5c 66 67 6f 75 74 7b | 5c 40 63 6f 6d 6d 65 6e |e\fgout{|\@commen|
|00003ca0| 74 20 46 49 47 55 52 45 | 53 20 66 6f 72 20 6a 6f |t FIGURE|S for jo|
|00003cb0| 62 20 5c 6a 6f 62 6e 61 | 6d 65 7d 25 0a 58 20 20 |b \jobna|me}%.X |
|00003cc0| 20 5c 69 6d 6d 65 64 69 | 61 74 65 5c 77 72 69 74 | \immedi|ate\writ|
|00003cd0| 65 5c 66 67 6f 75 74 7b | 5c 40 63 6f 6d 6d 65 6e |e\fgout{|\@commen|
|00003ce0| 74 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |t ======|========|
|00003cf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d00| 3d 3d 3d 3d 3d 3d 7d 25 | 0a 58 7d 0a 58 0a 58 25 |======}%|.X}.X.X%|
|00003d10| 20 5c 40 66 67 77 72 69 | 74 65 20 77 72 69 74 65 | \@fgwri|te write|
|00003d20| 73 20 74 6f 20 74 68 65 | 20 2e 66 67 20 66 69 6c |s to the| .fg fil|
|00003d30| 65 2e 20 20 54 68 65 20 | 61 72 67 75 6d 65 6e 74 |e. The |argument|
|00003d40| 20 69 73 20 65 78 70 61 | 6e 64 65 64 0a 58 0a 58 | is expa|nded.X.X|
|00003d50| 5c 64 65 66 5c 40 66 67 | 77 72 69 74 65 23 31 7b |\def\@fg|write#1{|
|00003d60| 25 20 77 72 69 74 65 20 | 66 69 67 75 72 65 20 6d |% write |figure m|
|00003d70| 61 74 65 72 69 61 6c 20 | 74 6f 20 5c 6a 6f 62 6e |aterial |to \jobn|
|00003d80| 61 6d 65 2e 66 67 20 66 | 69 6c 65 0a 58 20 20 5c |ame.fg f|ile.X \|
|00003d90| 40 66 67 69 6e 69 74 20 | 20 20 20 20 20 20 20 20 |@fginit | |
|00003da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 69 | | % i|
|00003dc0| 6e 69 74 69 61 6c 69 7a | 65 20 66 69 6c 65 2c 20 |nitializ|e file, |
|00003dd0| 69 66 20 6e 65 65 64 65 | 64 0a 58 20 20 5c 69 6d |if neede|d.X \im|
|00003de0| 6d 65 64 69 61 74 65 5c | 77 72 69 74 65 5c 66 67 |mediate\|write\fg|
|00003df0| 6f 75 74 7b 23 31 7d 25 | 20 20 20 20 20 20 20 20 |out{#1}%| |
|00003e00| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 77 72 69 | | % wri|
|00003e10| 74 65 20 74 6f 20 66 69 | 6c 65 0a 58 20 20 7d 0a |te to fi|le.X }.|
|00003e20| 58 0a 58 25 20 20 5c 40 | 66 67 4e 58 77 72 69 74 |X.X% \@|fgNXwrit|
|00003e30| 65 20 77 72 69 74 65 73 | 20 74 6f 20 74 68 65 20 |e writes| to the |
|00003e40| 2e 66 67 20 66 69 6c 65 | 20 77 69 74 68 6f 75 74 |.fg file| without|
|00003e50| 20 65 78 70 61 6e 64 69 | 6e 67 0a 58 0a 58 5c 6c | expandi|ng.X.X\l|
|00003e60| 6f 6e 67 5c 64 65 66 5c | 40 66 67 4e 58 77 72 69 |ong\def\|@fgNXwri|
|00003e70| 74 65 23 31 7b 25 20 77 | 72 69 74 65 20 74 6f 20 |te#1{% w|rite to |
|00003e80| 66 69 67 75 72 65 20 66 | 69 6c 65 20 77 69 74 68 |figure f|ile with|
|00003e90| 6f 75 74 20 65 78 70 61 | 6e 64 69 6e 67 0a 58 20 |out expa|nding.X |
|00003ea0| 20 5c 40 66 67 69 6e 69 | 74 20 20 20 20 20 20 20 | \@fgini|t |
|00003eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ec0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|00003ed0| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 66 69 6c 65 | initial|ize file|
|00003ee0| 2c 20 69 66 20 6e 65 65 | 64 65 64 0a 58 20 20 5c |, if nee|ded.X \|
|00003ef0| 75 6e 65 78 70 61 6e 64 | 65 64 77 72 69 74 65 5c |unexpand|edwrite\|
|00003f00| 66 67 6f 75 74 7b 23 31 | 7d 25 20 20 20 20 25 20 |fgout{#1|}% % |
|00003f10| 20 75 6e 65 78 70 61 6e | 64 65 64 20 77 72 69 74 | unexpan|ded writ|
|00003f20| 65 0a 58 20 20 7d 0a 58 | 0a 58 0a 58 25 20 2d 2d |e.X }.X|.X.X% --|
|00003f30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003f40| 2d 2d 2d 2d 2d 2d 2d 0a | 58 25 20 2d 2d 20 74 6f |-------.|X% -- to|
|00003f50| 20 62 65 20 63 68 61 6e | 67 65 64 20 73 6f 6f 6e | be chan|ged soon|
|00003f60| 2e 2e 2e 0a 58 0a 58 25 | 20 20 5c 40 63 6f 70 79 |....X.X%| \@copy|
|00003f70| 66 69 67 20 67 65 74 73 | 20 74 68 65 20 6e 65 78 |fig gets| the nex|
|00003f80| 74 20 6c 69 6e 65 20 6f | 66 20 74 65 78 74 20 61 |t line o|f text a|
|00003f90| 6e 64 20 73 65 6e 64 73 | 20 69 74 20 74 6f 20 5c |nd sends| it to \|
|00003fa0| 40 50 61 72 73 65 46 69 | 67 54 65 78 74 0a 58 25 |@ParseFi|gText.X%|
|00003fb0| 20 20 74 6f 20 73 63 61 | 6e 20 66 6f 72 20 5c 65 | to sca|n for \e|
|00003fc0| 6e 64 66 69 67 75 72 65 | 20 61 6e 64 20 61 63 74 |ndfigure| and act|
|00003fd0| 20 61 63 63 6f 72 64 69 | 6e 67 6c 79 2e 0a 58 0a | accordi|ngly..X.|
|00003fe0| 58 7b 5c 6f 62 65 79 6c | 69 6e 65 73 20 20 20 20 |X{\obeyl|ines |
|00003ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004010| 20 25 20 74 6f 20 73 65 | 65 20 65 6e 64 20 6f 66 | % to se|e end of|
|00004020| 20 6c 69 6e 65 0a 58 20 | 5c 6c 6f 6e 67 5c 67 64 | line.X |\long\gd|
|00004030| 65 66 5c 40 63 6f 70 79 | 66 69 67 23 31 0a 58 20 |ef\@copy|fig#1.X |
|00004040| 20 20 7b 5c 40 50 61 72 | 73 65 46 69 67 54 65 78 | {\@Par|seFigTex|
|00004050| 74 23 31 5c 65 6e 64 66 | 69 67 75 72 65 5c 65 6e |t#1\endf|igure\en|
|00004060| 64 66 69 67 75 72 65 5c | 65 6e 64 6c 69 73 74 20 |dfigure\|endlist |
|00004070| 25 20 50 41 52 53 45 20 | 6c 69 6e 65 0a 58 20 20 |% PARSE |line.X |
|00004080| 20 20 5c 40 6e 65 78 74 | 6c 69 6e 65 20 20 20 20 | \@next|line |
|00004090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|000040b0| 6e 65 78 74 20 69 74 65 | 72 61 74 69 6f 6e 0a 58 |next ite|ration.X|
|000040c0| 20 20 20 7d 0a 58 7d 25 | 20 20 20 20 20 20 20 20 | }.X}%| |
|000040d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040f0| 20 20 20 20 20 20 25 20 | 65 6e 64 20 5c 6f 62 65 | % |end \obe|
|00004100| 79 6c 69 6e 65 73 0a 58 | 0a 58 0a 58 25 20 20 5c |ylines.X|.X.X% \|
|00004110| 40 50 61 72 73 65 46 69 | 67 54 65 78 74 20 6c 6f |@ParseFi|gText lo|
|00004120| 6f 6b 73 20 61 74 20 74 | 68 65 20 6c 69 6e 65 20 |oks at t|he line |
|00004130| 66 6f 72 20 5c 65 6e 64 | 66 69 67 75 72 65 2e 20 |for \end|figure. |
|00004140| 49 66 20 69 74 20 69 73 | 20 70 72 65 73 65 6e 74 |If it is| present|
|00004150| 2c 0a 58 25 20 20 74 68 | 65 6e 20 23 31 20 69 73 |,.X% th|en #1 is|
|00004160| 20 74 65 78 74 20 62 65 | 66 6f 72 65 2c 20 23 32 | text be|fore, #2|
|00004170| 20 69 73 20 74 65 78 74 | 20 61 66 74 65 72 2c 20 | is text| after, |
|00004180| 61 6e 64 20 23 33 20 69 | 73 20 5c 65 6e 64 66 69 |and #3 i|s \endfi|
|00004190| 67 75 72 65 2e 20 49 66 | 20 69 74 0a 58 25 20 20 |gure. If| it.X% |
|000041a0| 69 73 20 6e 6f 74 20 70 | 72 65 73 65 6e 74 20 74 |is not p|resent t|
|000041b0| 68 65 6e 20 23 32 20 61 | 6e 64 20 23 33 20 61 72 |hen #2 a|nd #3 ar|
|000041c0| 65 20 6e 75 6c 6c 2c 20 | 61 6e 64 20 23 31 20 69 |e null, |and #1 i|
|000041d0| 73 20 74 68 65 20 6c 69 | 6e 65 2e 0a 58 0a 58 5c |s the li|ne..X.X\|
|000041e0| 6c 6f 6e 67 5c 64 65 66 | 5c 40 50 61 72 73 65 46 |long\def|\@ParseF|
|000041f0| 69 67 54 65 78 74 23 31 | 5c 65 6e 64 66 69 67 75 |igText#1|\endfigu|
|00004200| 72 65 23 32 5c 65 6e 64 | 66 69 67 75 72 65 23 33 |re#2\end|figure#3|
|00004210| 5c 65 6e 64 6c 69 73 74 | 7b 25 0a 58 20 20 20 5c |\endlist|{%.X \|
|00004220| 69 66 78 3f 23 31 3f 5c | 72 65 6c 61 78 20 20 20 |ifx?#1?\|relax |
|00004230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004240| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 69 66 | | % if|
|00004250| 20 6e 75 6c 6c 20 6c 69 | 6e 65 20 69 67 6e 6f 72 | null li|ne ignor|
|00004260| 65 20 69 74 0a 58 20 20 | 20 5c 65 6c 73 65 5c 40 |e it.X | \else\@|
|00004270| 66 67 4e 58 77 72 69 74 | 65 7b 23 31 7d 5c 66 69 |fgNXwrit|e{#1}\fi|
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004290| 20 20 20 20 20 20 25 20 | 65 6c 73 65 20 77 72 69 | % |else wri|
|000042a0| 74 65 20 74 6f 20 66 69 | 6c 65 0a 58 20 20 20 5c |te to fi|le.X \|
|000042b0| 69 66 78 3f 23 33 3f 5c | 6c 65 74 5c 40 6e 65 78 |ifx?#3?\|let\@nex|
|000042c0| 74 6c 69 6e 65 3d 5c 40 | 63 6f 70 79 66 69 67 20 |tline=\@|copyfig |
|000042d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 69 66 | | % if|
|000042e0| 20 6e 6f 20 5c 65 6e 64 | 66 69 67 75 72 65 2c 20 | no \end|figure, |
|000042f0| 72 65 70 65 61 74 0a 58 | 20 20 20 5c 65 6c 73 65 |repeat.X| \else|
|00004300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004320| 20 20 20 20 20 20 20 20 | 25 20 6f 74 68 65 72 77 | |% otherw|
|00004330| 69 73 65 2c 20 6c 65 74 | 27 73 20 71 75 69 74 0a |ise, let|'s quit.|
|00004340| 58 20 20 20 20 20 5c 67 | 64 65 66 5c 40 72 65 6d |X \g|def\@rem|
|00004350| 61 69 6e 64 65 72 7b 23 | 32 7d 25 20 20 20 20 20 |ainder{#|2}% |
|00004360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004370| 20 25 20 73 61 76 65 20 | 72 65 73 74 20 6f 66 20 | % save |rest of |
|00004380| 6c 69 6e 65 20 66 6f 72 | 20 6c 61 74 65 72 0a 58 |line for| later.X|
|00004390| 20 20 20 20 20 5c 6c 65 | 74 5c 40 6e 65 78 74 6c | \le|t\@nextl|
|000043a0| 69 6e 65 3d 5c 40 65 6e | 64 63 6f 70 79 66 69 67 |ine=\@en|dcopyfig|
|000043b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043c0| 25 20 20 20 61 6e 64 20 | 73 65 74 20 75 70 20 74 |% and |set up t|
|000043d0| 6f 20 65 78 69 74 20 6c | 6f 6f 70 0a 58 20 20 20 |o exit l|oop.X |
|000043e0| 5c 66 69 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |\fi | |
|000043f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 6e | | % n|
|00004410| 6f 77 20 67 6f 20 64 6f | 20 5c 40 6e 65 78 74 6c |ow go do| \@nextl|
|00004420| 69 6e 65 0a 58 20 20 20 | 7d 0a 58 0a 58 5c 64 65 |ine.X |}.X.X\de|
|00004430| 66 5c 40 65 6e 64 63 6f | 70 79 66 69 67 7b 5c 40 |f\@endco|pyfig{\@|
|00004440| 66 67 4e 58 77 72 69 74 | 65 7b 5c 40 65 6e 64 66 |fgNXwrit|e{\@endf|
|00004450| 69 67 75 72 65 7d 25 20 | 20 20 20 20 20 25 20 63 |igure}% | % c|
|00004460| 6c 6f 73 65 20 74 68 65 | 20 66 69 67 75 72 65 0a |lose the| figure.|
|00004470| 58 20 20 20 5c 65 6e 64 | 67 72 6f 75 70 20 20 20 |X \end|group |
|00004480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044a0| 20 25 20 65 6e 64 20 67 | 72 6f 75 70 20 66 72 6f | % end g|roup fro|
|000044b0| 6d 20 5c 40 53 61 76 65 | 46 69 67 73 0a 58 20 20 |m \@Save|Figs.X |
|000044c0| 20 5c 40 72 65 6d 61 69 | 6e 64 65 72 20 20 20 20 | \@remai|nder |
|000044d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|000044f0| 64 6f 20 74 68 65 20 72 | 65 6d 61 69 6e 64 65 72 |do the r|emainder|
|00004500| 0a 58 20 20 20 7d 0a 58 | 0a 58 25 20 2d 2d 2d 2d |.X }.X|.X% ----|
|00004510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004520| 2d 2d 2d 2d 2d 0a 58 0a | 58 25 20 20 5c 50 72 69 |-----.X.|X% \Pri|
|00004530| 6e 74 46 69 67 75 72 65 | 73 20 63 6c 6f 73 65 73 |ntFigure|s closes|
|00004540| 20 74 68 65 20 66 69 67 | 75 72 65 20 66 69 6c 65 | the fig|ure file|
|00004550| 20 61 6e 64 20 72 65 61 | 64 73 20 69 74 20 69 6e | and rea|ds it in|
|00004560| 2c 20 74 6f 0a 58 25 20 | 70 75 74 20 61 6c 6c 20 |, to.X% |put all |
|00004570| 6f 66 20 74 68 65 20 66 | 69 67 75 72 65 73 20 61 |of the f|igures a|
|00004580| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 74 68 65 |t the en|d of the|
|00004590| 20 64 6f 63 75 6d 65 6e | 74 2e 0a 58 25 20 49 66 | documen|t..X% If|
|000045a0| 20 79 6f 75 20 73 65 74 | 20 5c 46 69 67 73 4c 61 | you set| \FigsLa|
|000045b0| 73 74 66 61 6c 73 65 20 | 74 68 65 6e 20 6e 6f 74 |stfalse |then not|
|000045c0| 68 69 6e 67 20 68 61 70 | 70 65 6e 73 2e 0a 58 0a |hing hap|pens..X.|
|000045d0| 58 5c 64 65 66 5c 50 72 | 69 6e 74 46 69 67 75 72 |X\def\Pr|intFigur|
|000045e0| 65 73 7b 25 20 20 50 72 | 69 6e 74 73 20 74 68 65 |es{% Pr|ints the|
|000045f0| 20 66 69 67 75 72 65 73 | 20 61 74 20 74 68 65 20 | figures| at the |
|00004600| 65 6e 64 20 6f 66 20 74 | 68 65 20 64 6f 63 75 6d |end of t|he docum|
|00004610| 65 6e 74 0a 58 20 20 5c | 69 66 46 69 67 73 4c 61 |ent.X \|ifFigsLa|
|00004620| 73 74 5c 40 50 72 69 6e | 74 46 69 67 75 72 65 73 |st\@Prin|tFigures|
|00004630| 5c 66 69 7d 0a 58 0a 58 | 5c 64 65 66 5c 40 50 72 |\fi}.X.X|\def\@Pr|
|00004640| 69 6e 74 46 69 67 75 72 | 65 73 7b 25 20 20 50 72 |intFigur|es{% Pr|
|00004650| 69 6e 74 73 20 74 68 65 | 20 66 69 67 75 72 65 73 |ints the| figures|
|00004660| 20 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | at the |end of t|
|00004670| 68 65 20 64 6f 63 75 6d | 65 6e 74 0a 58 20 20 20 |he docum|ent.X |
|00004680| 5c 40 66 67 77 72 69 74 | 65 7b 5c 40 63 6f 6d 6d |\@fgwrit|e{\@comm|
|00004690| 65 6e 74 3e 3e 3e 20 45 | 4f 46 20 5c 6a 6f 62 6e |ent>>> E|OF \jobn|
|000046a0| 61 6d 65 2e 66 67 20 3c | 3c 3c 7d 25 20 25 20 61 |ame.fg <|<<}% % a|
|000046b0| 6e 64 20 45 4f 46 20 6d | 61 72 6b 65 72 20 63 6f |nd EOF m|arker co|
|000046c0| 6d 6d 65 6e 74 0a 58 20 | 20 20 5c 69 6d 6d 65 64 |mment.X | \immed|
|000046d0| 69 61 74 65 5c 63 6c 6f | 73 65 6f 75 74 5c 66 67 |iate\clo|seout\fg|
|000046e0| 6f 75 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |out | |
|000046f0| 20 20 20 20 20 20 20 25 | 20 20 74 68 65 6e 20 63 | %| then c|
|00004700| 6c 6f 73 65 20 74 68 65 | 20 2e 72 65 66 20 66 69 |lose the| .ref fi|
|00004710| 6c 65 0a 58 20 20 20 5c | 62 65 67 69 6e 67 72 6f |le.X \|begingro|
|00004720| 75 70 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |up | |
|00004730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004740| 20 20 20 20 25 20 6e 6f | 77 20 72 65 61 64 20 74 | % no|w read t|
|00004750| 68 65 20 2e 66 67 20 66 | 69 6c 65 0a 58 20 20 20 |he .fg f|ile.X |
|00004760| 20 20 20 5c 46 69 67 73 | 4c 61 73 74 66 61 6c 73 | \Figs|Lastfals|
|00004770| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00004780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 74 | | % t|
|00004790| 75 72 6e 20 6f 66 66 20 | 66 69 67 75 72 65 73 0a |urn off |figures.|
|000047a0| 58 20 20 20 20 20 20 5c | 76 62 6f 78 20 74 6f 20 |X \|vbox to |
|000047b0| 30 70 74 7b 5c 68 62 6f | 78 20 74 6f 20 30 70 74 |0pt{\hbo|x to 0pt|
|000047c0| 7b 5c 20 5c 68 73 73 7d | 5c 76 73 73 7d 25 20 20 |{\ \hss}|\vss}% |
|000047d0| 20 25 20 61 6e 63 68 6f | 72 20 74 6f 70 20 69 66 | % ancho|r top if|
|000047e0| 20 6e 65 65 64 65 64 0a | 58 20 20 20 20 20 20 5c | needed.|X \|
|000047f0| 41 54 75 6e 6c 6f 63 6b | 20 20 20 20 20 20 20 20 |ATunlock| |
|00004800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004810| 20 20 20 20 20 20 20 20 | 20 25 0a 58 20 20 20 20 | | %.X |
|00004820| 20 20 5c 6f 66 66 70 61 | 72 65 6e 73 20 20 20 20 | \offpa|rens |
|00004830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004840| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 6d 61 | | % ma|
|00004850| 6b 65 20 73 75 72 65 20 | 28 20 61 6e 64 20 29 20 |ke sure |( and ) |
|00004860| 6e 6f 74 20 61 63 74 69 | 76 65 0a 58 20 20 20 20 |not acti|ve.X |
|00004870| 20 20 5c 63 61 74 63 6f | 64 65 60 40 3d 31 31 20 | \catco|de`@=11 |
|00004880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004890| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 6d 61 | | % ma|
|000048a0| 6b 65 20 40 20 61 20 6c | 65 74 74 65 72 0a 58 20 |ke @ a l|etter.X |
|000048b0| 20 20 20 20 20 5c 75 6e | 6f 62 65 79 6c 69 6e 65 | \un|obeyline|
|000048c0| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s | |
|000048d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|000048e0| 20 74 72 65 61 74 20 5e | 5e 4d 20 6c 69 6b 65 20 | treat ^|^M like |
|000048f0| 77 68 69 74 65 73 70 61 | 63 65 0a 58 20 20 20 20 |whitespa|ce.X |
|00004900| 20 20 5c 65 6d 73 67 7b | 5b 47 65 74 74 69 6e 67 | \emsg{|[Getting|
|00004910| 20 66 69 67 75 72 65 73 | 20 66 72 6f 6d 20 66 69 | figures| from fi|
|00004920| 6c 65 20 5c 6a 6f 62 6e | 61 6d 65 2e 66 67 5d 7d |le \jobn|ame.fg]}|
|00004930| 25 20 0a 58 20 20 20 20 | 20 20 5c 49 6e 70 75 74 |% .X | \Input|
|00004940| 5c 6a 6f 62 6e 61 6d 65 | 2e 66 67 20 5c 72 65 6c |\jobname|.fg \rel|
|00004950| 61 78 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ax | |
|00004960| 20 20 20 20 25 20 72 65 | 61 64 20 74 65 78 74 20 | % re|ad text |
|00004970| 66 72 6f 6d 20 2e 72 65 | 66 20 66 69 6c 65 0a 58 |from .re|f file.X|
|00004980| 20 20 20 5c 65 6e 64 67 | 72 6f 75 70 20 20 20 20 | \endg|roup |
|00004990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049b0| 25 20 63 6c 6f 73 65 20 | 67 72 6f 75 70 0a 58 7d |% close |group.X}|
|000049c0| 0a 58 0a 58 25 20 5c 40 | 46 69 67 75 72 65 49 74 |.X.X% \@|FigureIt|
|000049d0| 65 6d 20 63 72 65 61 74 | 65 73 20 61 20 66 69 67 |em creat|es a fig|
|000049e0| 75 72 65 20 77 68 69 63 | 68 20 68 61 73 20 62 65 |ure whic|h has be|
|000049f0| 65 6e 20 73 74 6f 72 65 | 64 20 61 6c 72 65 61 64 |en store|d alread|
|00004a00| 79 0a 58 25 20 69 6e 20 | 74 68 65 20 66 69 67 75 |y.X% in |the figu|
|00004a10| 72 65 20 6f 72 20 74 61 | 62 6c 65 20 66 69 6c 65 |re or ta|ble file|
|00004a20| 2e 20 20 23 31 20 69 73 | 20 74 68 65 20 5c 43 61 |. #1 is| the \Ca|
|00004a30| 70 74 69 6f 6e 4e 61 6d | 65 2c 20 23 32 20 69 73 |ptionNam|e, #2 is|
|00004a40| 20 74 68 65 0a 58 25 20 | 66 69 67 75 72 65 20 6f | the.X% |figure o|
|00004a50| 72 20 74 61 62 6c 65 20 | 6e 75 6d 62 65 72 2c 20 |r table |number, |
|00004a60| 61 6e 64 20 23 33 20 69 | 73 20 74 68 65 20 74 79 |and #3 i|s the ty|
|00004a70| 70 65 20 6f 66 20 5c 69 | 6e 73 65 72 74 0a 58 0a |pe of \i|nsert.X.|
|00004a80| 58 5c 64 65 66 5c 40 46 | 69 67 75 72 65 49 74 65 |X\def\@F|igureIte|
|00004a90| 6d 23 31 23 32 23 33 7b | 25 20 63 72 65 61 74 65 |m#1#2#3{|% create|
|00004aa0| 73 20 61 20 66 69 67 75 | 72 65 20 61 6c 72 65 61 |s a figu|re alrea|
|00004ab0| 64 79 20 73 74 6f 72 65 | 64 20 69 6e 20 5c 6a 6f |dy store|d in \jo|
|00004ac0| 62 6e 61 6d 65 2e 66 67 | 0a 58 20 20 20 5c 62 65 |bname.fg|.X \be|
|00004ad0| 67 69 6e 67 72 6f 75 70 | 20 20 20 20 20 20 20 20 |gingroup| |
|00004ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004af0| 20 20 20 20 20 20 20 20 | 20 20 25 20 73 61 6d 65 | | % same|
|00004b00| 20 61 73 20 69 6e 20 5c | 40 66 69 67 75 72 65 0a | as in \|@figure.|
|00004b10| 58 20 20 20 20 23 33 5c | 72 65 6c 61 78 20 20 20 |X #3\|relax |
|00004b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b40| 20 25 20 64 6f 20 74 68 | 65 20 74 68 65 20 69 6e | % do th|e the in|
|00004b50| 73 65 72 74 0a 58 20 20 | 20 20 5c 64 65 66 5c 40 |sert.X | \def\@|
|00004b60| 49 44 7b 23 32 7d 25 20 | 20 20 20 20 20 20 20 20 |ID{#2}% | |
|00004b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b80| 20 20 20 20 20 20 25 20 | 67 65 74 20 66 69 67 75 | % |get figu|
|00004b90| 72 65 20 6e 75 6d 62 65 | 72 0a 58 20 20 20 20 5c |re numbe|r.X \|
|00004ba0| 64 65 66 5c 43 61 70 74 | 69 6f 6e 4e 61 6d 65 7b |def\Capt|ionName{|
|00004bb0| 23 31 7d 25 20 20 20 20 | 20 20 20 20 20 20 20 20 |#1}% | |
|00004bc0| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 74 79 70 | | % typ|
|00004bd0| 65 20 6f 66 20 69 6e 73 | 65 72 74 20 69 73 20 60 |e of ins|ert is `|
|00004be0| 60 46 69 67 75 72 65 27 | 27 0a 58 20 20 20 20 5c |`Figure'|'.X \|
|00004bf0| 73 65 74 62 6f 78 5c 40 | 63 61 70 62 6f 78 5c 76 |setbox\@|capbox\v|
|00004c00| 62 6f 78 20 74 6f 20 30 | 70 74 7b 7d 25 20 20 20 |box to 0|pt{}% |
|00004c10| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 63 6c 65 | | % cle|
|00004c20| 61 72 73 20 63 61 70 74 | 69 6f 6e 20 69 6e 20 5c |ars capt|ion in \|
|00004c30| 40 63 61 70 62 6f 78 0a | 58 20 20 20 20 5c 64 65 |@capbox.|X \de|
|00004c40| 66 5c 40 77 68 65 72 65 | 43 61 70 7b 4e 7d 25 20 |f\@where|Cap{N}% |
|00004c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c60| 20 20 20 20 20 20 20 20 | 20 25 20 6e 6f 20 63 61 | | % no ca|
|00004c70| 70 74 69 6f 6e 20 28 79 | 65 74 29 0a 58 20 20 20 |ption (y|et).X |
|00004c80| 20 5c 40 66 69 6e 64 63 | 61 70 20 20 20 20 20 20 | \@findc|ap |
|00004c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 25 20 63 | | % c|
|00004cb0| 68 65 63 6b 20 66 6f 72 | 20 5c 63 61 70 74 69 6f |heck for| \captio|
|00004cc0| 6e 0a 58 20 20 20 20 7d | 0a 58 0a 58 25 3d 3d 3d |n.X }|.X.X%===|
|00004cd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004cf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004d00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004d10| 3d 3d 3d 2a 0a 58 25 20 | 54 41 42 4c 45 53 20 41 |===*.X% |TABLES A|
|00004d20| 54 20 45 4e 44 20 4f 46 | 20 44 4f 43 55 4d 45 4e |T END OF| DOCUMEN|
|00004d30| 54 2e 20 20 20 20 73 69 | 6d 69 6c 61 72 20 74 6f |T. si|milar to|
|00004d40| 20 66 69 67 75 72 65 73 | 2e 0a 58 25 0a 58 0a 58 | figures|..X%.X.X|
|00004d50| 5c 6e 65 77 69 66 5c 69 | 66 54 61 62 73 4c 61 73 |\newif\i|fTabsLas|
|00004d60| 74 20 20 20 20 20 20 20 | 5c 54 61 62 73 4c 61 73 |t |\TabsLas|
|00004d70| 74 66 61 6c 73 65 20 20 | 20 20 20 20 20 20 20 20 |tfalse | |
|00004d80| 20 20 20 20 20 20 25 20 | 73 61 76 65 20 74 61 62 | % |save tab|
|00004d90| 6c 65 73 20 75 6e 74 69 | 6c 20 65 6e 64 3f 0a 58 |les unti|l end?.X|
|00004da0| 5c 64 65 66 5c 54 61 62 | 6c 65 73 4c 61 73 74 7b |\def\Tab|lesLast{|
|00004db0| 5c 54 61 62 73 4c 61 73 | 74 74 72 75 65 7d 0a 58 |\TabsLas|ttrue}.X|
|00004dc0| 5c 64 65 66 5c 54 61 62 | 6c 65 73 4e 6f 77 7b 5c |\def\Tab|lesNow{\|
|00004dd0| 54 61 62 73 4c 61 73 74 | 66 61 6c 73 65 7d 0a 58 |TabsLast|false}.X|
|00004de0| 5c 6e 65 77 77 72 69 74 | 65 5c 74 62 6f 75 74 20 |\newwrit|e\tbout |
|00004df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|00004e10| 66 69 6c 65 20 74 6f 20 | 73 61 76 65 20 74 61 62 |file to |save tab|
|00004e20| 6c 65 73 20 69 6e 0a 58 | 0a 58 0a 58 5c 64 65 66 |les in.X|.X.X\def|
|00004e30| 5c 40 54 42 69 6e 69 74 | 7b 25 20 69 6e 69 74 69 |\@TBinit|{% initi|
|00004e40| 61 6c 69 7a 65 20 74 61 | 62 6c 65 20 66 69 6c 65 |alize ta|ble file|
|00004e50| 20 5c 6a 6f 62 6e 61 6d | 65 2e 74 62 0a 58 20 20 | \jobnam|e.tb.X |
|00004e60| 20 5c 69 6d 6d 65 64 69 | 61 74 65 5c 6f 70 65 6e | \immedi|ate\open|
|00004e70| 6f 75 74 5c 74 62 6f 75 | 74 3d 5c 6a 6f 62 6e 61 |out\tbou|t=\jobna|
|00004e80| 6d 65 2e 74 62 20 5c 72 | 65 6c 61 78 20 20 25 20 |me.tb \r|elax % |
|00004e90| 79 65 73 3a 20 74 68 65 | 6e 20 6f 70 65 6e 20 66 |yes: the|n open f|
|00004ea0| 6f 72 20 6f 75 74 70 75 | 74 0a 58 20 20 20 5c 67 |or outpu|t.X \g|
|00004eb0| 64 65 66 5c 40 54 42 69 | 6e 69 74 7b 5c 72 65 6c |def\@TBi|nit{\rel|
|00004ec0| 61 78 7d 25 20 20 20 20 | 20 20 20 20 20 20 20 20 |ax}% | |
|00004ed0| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 61 6e 64 | | % and|
|00004ee0| 20 64 69 73 61 62 6c 65 | 20 5c 40 54 42 69 6e 69 | disable| \@TBini|
|00004ef0| 74 0a 58 20 20 20 5c 69 | 6d 6d 65 64 69 61 74 65 |t.X \i|mmediate|
|00004f00| 5c 77 72 69 74 65 5c 74 | 62 6f 75 74 7b 5c 40 63 |\write\t|bout{\@c|
|00004f10| 6f 6d 6d 65 6e 74 20 54 | 41 42 4c 45 53 20 46 4f |omment T|ABLES FO|
|00004f20| 52 20 5c 6a 6f 62 6e 61 | 6d 65 2e 74 65 78 7d 25 |R \jobna|me.tex}%|
|00004f30| 0a 58 20 20 20 5c 69 6d | 6d 65 64 69 61 74 65 5c |.X \im|mediate\|
|00004f40| 77 72 69 74 65 5c 74 62 | 6f 75 74 7b 5c 40 63 6f |write\tb|out{\@co|
|00004f50| 6d 6d 65 6e 74 20 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |mment ==|========|
|00004f60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004f70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 7d 25 0a 58 7d 0a |========|==}%.X}.|
|00004f80| 58 0a 58 25 20 5c 40 74 | 62 77 72 69 74 65 20 77 |X.X% \@t|bwrite w|
|00004f90| 72 69 74 65 73 20 74 6f | 20 74 68 65 20 2e 74 62 |rites to| the .tb|
|00004fa0| 20 66 69 6c 65 2e 20 20 | 54 68 65 20 61 72 67 75 | file. |The argu|
|00004fb0| 6d 65 6e 74 20 69 73 20 | 65 78 70 61 6e 64 65 64 |ment is |expanded|
|00004fc0| 0a 58 0a 58 5c 64 65 66 | 5c 40 74 62 77 72 69 74 |.X.X\def|\@tbwrit|
|00004fd0| 65 23 31 7b 25 20 77 72 | 69 74 65 20 74 61 62 6c |e#1{% wr|ite tabl|
|00004fe0| 65 20 6d 61 74 65 72 69 | 61 6c 20 74 6f 20 5c 6a |e materi|al to \j|
|00004ff0| 6f 62 6e 61 6d 65 2e 74 | 62 20 66 69 6c 65 0a 58 |obname.t|b file.X|
|00005000| 20 20 5c 40 54 42 69 6e | 69 74 20 20 20 20 20 20 | \@TBin|it |
|00005010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005030| 25 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 66 69 6c |% initia|lize fil|
|00005040| 65 2c 20 69 66 20 6e 65 | 65 64 65 64 0a 58 20 20 |e, if ne|eded.X |
|00005050| 5c 69 6d 6d 65 64 69 61 | 74 65 5c 77 72 69 74 65 |\immedia|te\write|
|00005060| 5c 74 62 6f 75 74 7b 23 | 31 7d 25 20 20 20 20 20 |\tbout{#|1}% |
|00005070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 25 20 | | % |
|00005080| 77 72 69 74 65 20 74 6f | 20 66 69 6c 65 0a 58 20 |write to| file.X |
|00005090| 20 7d 0a 58 0a 58 25 20 | 20 5c 40 74 62 4e 58 77 | }.X.X% | \@tbNXw|
|000050a0| 72 69 74 65 20 77 72 69 | 74 65 73 20 74 6f 20 74 |rite wri|tes to t|
|000050b0| 68 65 20 2e 74 62 20 66 | 69 6c 65 20 77 69 74 68 |he .tb f|ile with|
|000050c0| 6f 75 74 20 65 78 70 61 | 6e 64 69 6e 67 0a 58 0a |out expa|nding.X.|
|000050d0| 58 5c 6c 6f 6e 67 5c 64 | 65 66 5c 40 74 62 4e 58 |X\long\d|ef\@tbNX|
|000050e0| 77 72 69 74 65 23 31 7b | 25 20 77 72 69 74 65 20 |write#1{|% write |
|000050f0| 74 6f 20 74 61 62 6c 65 | 20 66 69 6c 65 20 77 69 |to table| file wi|
|00005100| 74 68 6f 75 74 20 65 78 | 70 61 6e 64 69 6e 67 0a |thout ex|panding.|
|00005110| 58 20 20 5c 40 54 42 69 | 6e 69 74 20 20 20 20 20 |X \@TBi|nit |
|00005120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005140| 20 25 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 66 69 | % initi|alize fi|
|00005150| 6c 65 2c 20 69 66 20 6e | 65 65 64 65 64 0a 58 20 |le, if n|eeded.X |
|00005160| 20 5c 75 6e 65 78 70 61 | 6e 64 65 64 77 72 69 74 | \unexpa|ndedwrit|
|00005170| 65 5c 74 62 6f 75 74 7b | 23 31 7d 25 20 20 20 20 |e\tbout{|#1}% |
|00005180| 25 20 20 75 6e 65 78 70 | 61 6e 64 65 64 20 77 72 |% unexp|anded wr|
|00005190| 69 74 65 0a 58 20 20 7d | 0a 58 0a 58 0a 58 25 20 |ite.X }|.X.X.X% |
|000051a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000051b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 58 25 20 2d 2d 20 |--------|-.X% -- |
|000051c0| 74 6f 20 62 65 20 63 68 | 61 6e 67 65 64 20 73 6f |to be ch|anged so|
|000051d0| 6f 6e 2e 2e 2e 0a 58 0a | 58 25 20 20 5c 40 63 6f |on....X.|X% \@co|
|000051e0| 70 79 74 61 62 20 67 65 | 74 73 20 74 68 65 20 6e |pytab ge|ts the n|
|000051f0| 65 78 74 20 6c 69 6e 65 | 20 6f 66 20 74 65 78 74 |ext line| of text|
|00005200| 20 61 6e 64 20 73 65 6e | 64 73 20 69 74 20 74 6f | and sen|ds it to|
|00005210| 20 5c 40 50 61 72 73 65 | 54 61 62 54 65 78 74 0a | \@Parse|TabText.|
|00005220| 58 25 20 20 74 6f 20 73 | 63 61 6e 20 66 6f 72 20 |X% to s|can for |
|00005230| 5c 65 6e 64 74 61 62 6c | 65 20 61 6e 64 20 61 63 |\endtabl|e and ac|
|00005240| 74 20 61 63 63 6f 72 64 | 69 6e 67 6c 79 2e 0a 58 |t accord|ingly..X|
|00005250| 0a 58 7b 5c 6f 62 65 79 | 6c 69 6e 65 73 20 20 20 |.X{\obey|lines |
|00005260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005280| 20 20 25 20 74 6f 20 73 | 65 65 20 65 6e 64 20 6f | % to s|ee end o|
|00005290| 66 20 6c 69 6e 65 0a 58 | 20 5c 6c 6f 6e 67 5c 67 |f line.X| \long\g|
|000052a0| 64 65 66 5c 40 63 6f 70 | 79 74 61 62 23 31 0a 58 |def\@cop|ytab#1.X|
|000052b0| 20 20 20 7b 5c 40 50 61 | 72 73 65 54 61 62 54 65 | {\@Pa|rseTabTe|
|000052c0| 78 74 23 31 5c 65 6e 64 | 74 61 62 6c 65 5c 65 6e |xt#1\end|table\en|
|000052d0| 64 74 61 62 6c 65 5c 65 | 6e 64 6c 69 73 74 20 25 |dtable\e|ndlist %|
|000052e0| 20 50 41 52 53 45 20 6c | 69 6e 65 0a 58 20 20 20 | PARSE l|ine.X |
|000052f0| 20 5c 40 6e 65 78 74 6c | 69 6e 65 20 20 20 20 20 | \@nextl|ine |
|00005300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005310| 20 20 20 20 20 20 20 20 | 20 20 20 25 20 6e 65 78 | | % nex|
|00005320| 74 20 69 74 65 72 61 74 | 69 6f 6e 0a 58 20 20 20 |t iterat|ion.X |
|00005330| 7d 0a 58 7d 25 20 20 20 | 20 20 20 20 20 20 20 20 |}.X}% | |
|00005340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005360| 20 20 20 25 20 65 6e 64 | 20 5c 6f 62 65 79 6c 69 | % end| \obeyli|
|00005370| 6e 65 73 0a 58 0a 58 0a | 58 25 20 20 5c 40 50 61 |nes.X.X.|X% \@Pa|
|00005380| 72 73 65 54 61 62 54 65 | 78 74 20 6c 6f 6f 6b 73 |rseTabTe|xt looks|
|00005390| 20 61 74 20 74 68 65 20 | 6c 69 6e 65 20 66 6f 72 | at the |line for|
|000053a0| 20 5c 65 6e 64 74 61 62 | 6c 65 2e 20 49 66 20 69 | \endtab|le. If i|
|000053b0| 74 20 69 73 20 70 72 65 | 73 65 6e 74 2c 0a 58 25 |t is pre|sent,.X%|
|000053c0| 20 20 74 68 65 6e 20 23 | 31 20 69 73 20 74 65 78 | then #|1 is tex|
|000053d0| 74 20 62 65 66 6f 72 65 | 2c 20 23 32 20 69 73 20 |t before|, #2 is |
|000053e0| 74 65 78 74 20 61 66 74 | 65 72 2c 20 61 6e 64 20 |text aft|er, and |
|000053f0| 23 33 20 69 73 20 5c 65 | 6e 64 74 61 62 6c 65 2e |#3 is \e|ndtable.|
|00005400| 20 49 66 20 69 74 0a 58 | 25 20 20 69 73 20 6e 6f | If it.X|% is no|
|00005410| 74 20 70 72 65 73 65 6e | 74 20 74 68 65 6e 20 23 |t presen|t then #|
|00005420| 32 20 61 6e 64 20 23 33 | 20 61 72 65 20 6e 75 6c |2 and #3| are nul|
|00005430| 6c 2c 20 61 6e 64 20 23 | 31 20 69 73 20 74 68 65 |l, and #|1 is the|
|00005440| 20 6c 69 6e 65 2e 0a 58 | 0a 58 5c 6c 6f 6e 67 5c | line..X|.X\long\|
|00005450| 64 65 66 5c 40 50 61 72 | 73 65 54 61 62 54 65 78 |def\@Par|seTabTex|
|00005460| 74 23 31 5c 65 6e 64 74 | 61 62 6c 65 23 32 5c 65 |t#1\endt|able#2\e|
|00005470| 6e 64 74 61 62 6c 65 23 | 33 5c 65 6e 64 6c 69 73 |ndtable#|3\endlis|
|00005480| 74 7b 25 0a 58 20 20 20 | 5c 69 66 78 3f 23 31 3f |t{%.X |\ifx?#1?|
|00005490| 5c 72 65 6c 61 78 20 20 | 20 20 20 20 20 20 20 20 |\relax | |
|000054a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054b0| 20 20 20 20 20 25 20 69 | 66 20 6e 75 6c 6c 20 6c | % i|f null l|
|000054c0| 69 6e 65 20 69 67 6e 6f | 72 65 20 69 74 0a 58 20 |ine igno|re it.X |
|000054d0| 20 20 5c 65 6c 73 65 5c | 40 74 62 4e 58 77 72 69 | \else\|@tbNXwri|
|000054e0| 74 65 7b 23 31 7d 5c 66 | 69 20 20 20 20 20 20 20 |te{#1}\f|i |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|00005500| 20 65 6c 73 65 20 77 72 | 69 74 65 20 74 6f 20 66 | else wr|ite to f|
|00005510| 69 6c 65 0a 58 20 20 20 | 5c 69 66 78 3f 23 33 3f |ile.X |\ifx?#3?|
|00005520| 5c 6c 65 74 5c 40 6e 65 | 78 74 6c 69 6e 65 3d 5c |\let\@ne|xtline=\|
|00005530| 40 63 6f 70 79 74 61 62 | 20 20 20 20 20 20 20 20 |@copytab| |
|00005540| 20 20 20 20 20 25 20 69 | 66 20 6e 6f 20 5c 65 6e | % i|f no \en|
|00005550| 64 74 61 62 6c 65 2c 20 | 72 65 70 65 61 74 0a 58 |dtable, |repeat.X|
|00005560| 20 20 20 5c 65 6c 73 65 | 20 20 20 20 20 20 20 20 | \else| |
|00005570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005590| 25 20 6f 74 68 65 72 77 | 69 73 65 2c 20 6c 65 74 |% otherw|ise, let|
|000055a0| 27 73 20 71 75 69 74 0a | 58 20 20 20 20 20 5c 67 |'s quit.|X \g|
|000055b0| 64 65 66 5c 40 72 65 6d | 61 69 6e 64 65 72 7b 23 |def\@rem|ainder{#|
|000055c0| 32 7d 25 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |2}% | |
|000055d0| 20 20 20 20 20 20 20 20 | 20 25 20 73 61 76 65 20 | | % save |
|000055e0| 72 65 73 74 20 6f 66 20 | 6c 69 6e 65 20 66 6f 72 |rest of |line for|
|000055f0| 20 6c 61 74 65 72 0a 58 | 20 20 20 20 20 5c 6c 65 | later.X| \le|
|00005600| 74 5c 40 6e 65 78 74 6c | 69 6e 65 3d 5c 40 65 6e |t\@nextl|ine=\@en|
|00005610| 64 63 6f 70 79 74 61 62 | 20 20 20 20 20 20 20 20 |dcopytab| |
|00005620| 20 20 20 20 20 20 20 20 | 25 20 20 20 61 6e 64 20 | |% and |
|00005630| 73 65 74 20 75 70 20 74 | 6f 20 65 78 69 74 20 6c |set up t|o exit l|
|00005640| 6f 6f 70 0a 58 20 20 20 | 5c 66 69 20 20 20 20 20 |oop.X |\fi |
|00005650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005670| 20 20 20 20 20 25 20 6e | 6f 77 20 67 6f 20 64 6f | % n|ow go do|
|00005680| 20 5c 40 6e 65 78 74 6c | 69 6e 65 0a 58 20 20 20 | \@nextl|ine.X |
|00005690| 7d 0a 58 0a 58 5c 64 65 | 66 5c 40 65 6e 64 63 6f |}.X.X\de|f\@endco|
|000056a0| 70 79 74 61 62 7b 5c 40 | 74 62 4e 58 77 72 69 74 |pytab{\@|tbNXwrit|
|000056b0| 65 7b 5c 40 65 6e 64 66 | 69 67 75 72 65 7d 25 20 |e{\@endf|igure}% |
|000056c0| 20 20 20 20 20 25 20 63 | 6c 6f 73 65 20 74 68 65 | % c|lose the|
|000056d0| 20 74 61 62 6c 65 0a 58 | 20 20 20 5c 65 6e 64 67 | table.X| \endg|
|000056e0| 72 6f 75 70 20 20 20 20 | 20 20 20 20 20 20 20 20 |roup | |
|000056f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005700| 20 20 20 20 20 20 20 20 | 25 20 65 6e 64 20 67 72 | |% end gr|
|00005710| 6f 75 70 20 66 72 6f 6d | 20 5c 40 53 61 76 65 54 |oup from| \@SaveT|
|00005720| 61 62 73 0a 58 20 20 20 | 5c 40 72 65 6d 61 69 6e |abs.X |\@remain|
|00005730| 64 65 72 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |der | |
|00005740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005750| 20 20 20 20 20 25 20 64 | 6f 20 74 68 65 20 72 65 | % d|o the re|
|00005760| 6d 61 69 6e 64 65 72 0a | 58 20 20 20 7d 0a 58 0a |mainder.|X }.X.|
|00005770| 58 25 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X%------|--------|
|00005780| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 58 0a 58 0a |--------|---.X.X.|
|00005790| 58 25 20 20 5c 50 72 69 | 6e 74 54 61 62 6c 65 73 |X% \Pri|ntTables|
|000057a0| 20 63 6c 6f 73 65 73 20 | 74 68 65 20 74 61 62 6c | closes |the tabl|
|000057b0| 65 20 66 69 6c 65 20 61 | 6e 64 20 72 65 61 64 73 |e file a|nd reads|
|000057c0| 20 69 74 20 69 6e 2c 20 | 74 6f 0a 58 25 20 70 75 | it in, |to.X% pu|
|000057d0| 74 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 74 61 62 |t all of| the tab|
|000057e0| 6c 65 73 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f |les at t|he end o|
|000057f0| 66 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 2e 0a |f the do|cument..|
|00005800| 58 25 20 49 66 20 79 6f | 75 20 73 65 74 20 5c 54 |X% If yo|u set \T|
|00005810| 61 62 73 4c 61 73 74 66 | 61 6c 73 65 20 74 68 65 |absLastf|alse the|
|00005820| 6e 20 6e 6f 74 68 69 6e | 67 20 68 61 70 70 65 6e |n nothin|g happen|
|00005830| 73 2e 0a 58 0a 58 5c 64 | 65 66 5c 50 72 69 6e 74 |s..X.X\d|ef\Print|
|00005840| 54 61 62 6c 65 73 7b 25 | 20 20 50 72 69 6e 74 73 |Tables{%| Prints|
|00005850| 20 74 68 65 20 74 61 62 | 6c 65 73 20 61 74 20 74 | the tab|les at t|
|00005860| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 64 6f |he end o|f the do|
|00005870| 63 75 6d 65 6e 74 0a 58 | 20 20 5c 69 66 54 61 62 |cument.X| \ifTab|
|00005880| 73 4c 61 73 74 5c 40 50 | 72 69 6e 74 54 61 62 6c |sLast\@P|rintTabl|
|00005890| 65 73 5c 66 69 7d 0a 58 | 0a 58 5c 64 65 66 5c 40 |es\fi}.X|.X\def\@|
|000058a0| 50 72 69 6e 74 54 61 62 | 6c 65 73 7b 25 20 20 50 |PrintTab|les{% P|
|000058b0| 72 69 6e 74 73 20 74 68 | 65 20 74 61 62 6c 65 73 |rints th|e tables|
|000058c0| 20 61 74 20 74 68 65 20 | 65 6e 64 20 6f 66 20 74 | at the |end of t|
|000058d0| 68 65 20 64 6f 63 75 6d | 65 6e 74 0a 58 20 20 20 |he docum|ent.X |
|000058e0| 5c 40 74 62 77 72 69 74 | 65 7b 5c 40 63 6f 6d 6d |\@tbwrit|e{\@comm|
|000058f0| 65 6e 74 3e 3e 3e 20 45 | 4f 46 20 5c 6a 6f 62 6e |ent>>> E|OF \jobn|
|00005900| 61 6d 65 2e 74 62 20 3c | 3c 3c 7d 25 20 25 20 61 |ame.tb <|<<}% % a|
|00005910| 6e 64 20 45 4f 46 20 6d | 61 72 6b 65 72 20 63 6f |nd EOF m|arker co|
|00005920| 6d 6d 65 6e 74 0a 58 20 | 20 20 5c 69 6d 6d 65 64 |mment.X | \immed|
|00005930| 69 61 74 65 5c 63 6c 6f | 73 65 6f 75 74 5c 74 62 |iate\clo|seout\tb|
|00005940| 6f 75 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |out | |
|00005950| 20 20 20 20 20 20 20 25 | 20 20 74 68 65 6e 20 63 | %| then c|
|00005960| 6c 6f 73 65 20 74 68 65 | 20 2e 72 65 66 20 66 69 |lose the| .ref fi|
|00005970| 6c 65 0a 58 20 20 20 5c | 54 61 62 73 4c 61 73 74 |le.X \|TabsLast|
|00005980| 66 61 6c 73 65 20 20 20 | 20 20 20 20 20 20 20 20 |false | |
|00005990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000059a0| 20 20 25 20 54 55 52 4e | 20 54 48 49 53 20 4f 46 | % TURN| THIS OF|
|000059b0| 46 0a 58 20 20 20 5c 62 | 65 67 69 6e 67 72 6f 75 |F.X \b|egingrou|
|000059c0| 70 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |p | |
|000059d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000059e0| 20 20 20 25 20 6e 6f 77 | 20 72 65 61 64 20 74 68 | % now| read th|
|000059f0| 65 20 2e 74 62 20 66 69 | 6c 65 0a 58 20 20 20 20 |e .tb fi|le.X |
|00005a00| 20 5c 63 61 74 63 6f 64 | 65 60 40 3d 31 31 20 20 | \catcod|e`@=11 |
|00005a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a20| 20 20 20 20 20 20 20 20 | 20 20 20 20 25 20 6d 61 | | % ma|
|00005a30| 6b 65 20 40 20 61 20 6c | 65 74 74 65 72 0a 58 20 |ke @ a l|etter.X |
|00005a40| 20 20 20 20 5c 6f 66 66 | 70 61 72 65 6e 73 20 20 | \off|parens |
|00005a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|00005a70| 20 6d 61 6b 65 20 73 75 | 72 65 20 28 20 61 6e 64 | make su|re ( and|
|00005a80| 20 29 20 6e 6f 74 20 61 | 63 74 69 76 65 0a 58 20 | ) not a|ctive.X |
|00005a90| 20 20 20 20 5c 75 6e 6f | 62 65 79 6c 69 6e 65 73 | \uno|beylines|
|00005aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 25 | | %|
|00005ac0| 20 74 72 65 61 74 20 5e | 5e 4d 20 6c 69 6b 65 20 | treat ^|^M like |
|00005ad0| 77 68 69 74 65 73 70 61 | 63 65 0a 58 20 20 20 20 |whitespa|ce.X |
|00005ae0| 20 5c 65 6d 73 67 7b 5b | 47 65 74 74 69 6e 67 20 | \emsg{[|Getting |
|00005af0| 74 61 62 6c 65 73 20 66 | 72 6f 6d 20 66 69 6c 65 |tables f|rom file|
|00005b00| 2e 5d 7d 25 20 0a 58 20 | 20 20 20 20 5c 49 6e 70 |.]}% .X | \Inp|
|00005b10| 75 74 5c 6a 6f 62 6e 61 | 6d 65 2e 74 62 20 5c 72 |ut\jobna|me.tb \r|
|00005b20| 65 6c 61 78 20 20 20 20 | 20 20 20 20 20 20 20 20 |elax | |
|00005b30| 20 20 20 20 20 20 20 25 | 20 72 65 61 64 20 74 65 | %| read te|
|00005b40| 78 74 20 66 72 6f 6d 20 | 2e 72 65 66 20 66 69 6c |xt from |.ref fil|
|00005b50| 65 0a 58 20 20 20 5c 65 | 6e 64 67 72 6f 75 70 20 |e.X \e|ndgroup |
|00005b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b80| 20 20 20 25 20 63 6c 6f | 73 65 20 67 72 6f 75 70 | % clo|se group|
|00005b90| 0a 58 7d 0a 58 0a 58 25 | 3d 3d 3d 3d 3d 3d 3d 3d |.X}.X.X%|========|
|00005ba0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005bb0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005bc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005bd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 2a 0a |========|======*.|
|00005be0| 58 25 20 46 49 47 55 52 | 45 20 4c 49 53 54 2e 0a |X% FIGUR|E LIST..|
|00005bf0| 58 25 0a 58 25 20 20 20 | 20 20 20 20 54 68 65 73 |X%.X% | Thes|
|00005c00| 65 20 6d 61 63 72 6f 73 | 20 77 72 69 74 65 20 6f |e macros| write o|
|00005c10| 75 74 20 74 6f 20 74 68 | 65 20 66 69 67 75 72 65 |ut to th|e figure|
|00005c20| 20 6c 69 73 74 20 66 69 | 6c 65 20 61 6e 64 20 72 | list fi|le and r|
|00005c30| 65 61 64 20 69 74 20 0a | 58 25 20 69 6e 20 6c 61 |ead it .|X% in la|
|00005c40| 74 65 72 2c 20 61 6e 64 | 20 73 69 6d 69 6c 61 72 |ter, and| similar|
|00005c50| 6c 79 20 66 6f 72 20 74 | 68 65 20 6c 69 73 74 20 |ly for t|he list |
|00005c60| 6f 66 20 74 61 62 6c 65 | 73 2e 20 20 0a 58 25 0a |of table|s. .X%.|
|00005c70| 58 25 20 54 6f 20 6d 61 | 6b 65 20 61 6e 20 65 6e |X% To ma|ke an en|
|00005c80| 74 72 79 20 69 6e 20 74 | 68 65 20 6c 69 73 74 20 |try in t|he list |
|00005c90| 6f 66 20 66 69 67 75 72 | 65 73 20 6f 72 20 74 61 |of figur|es or ta|
|00005ca0| 62 6c 65 73 20 69 6e 63 | 6c 75 64 65 20 69 6e 0a |bles inc|lude in.|
|00005cb0| 58 25 20 74 68 65 20 66 | 69 67 75 72 65 20 6f 72 |X% the f|igure or|
|00005cc0| 20 74 61 62 6c 65 20 61 | 20 63 61 6c 20 74 6f 20 | table a| cal to |
|00005cd0| 5c 69 6e 66 69 67 6c 69 | 73 74 7b 3c 74 65 78 74 |\infigli|st{<text|
|00005ce0| 3e 7d 20 6f 72 20 5c 69 | 6e 74 61 62 6c 65 6c 69 |>} or \i|ntableli|
|00005cf0| 73 74 7b 3c 74 65 78 74 | 3e 7d 2e 0a 58 20 20 20 |st{<text|>}..X |
|00005d00| 0a 58 5c 6e 65 77 77 72 | 69 74 65 5c 66 69 67 6c |.X\newwr|ite\figl|
|00005d10| 69 73 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ist | |
|00005d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d30| 20 20 25 20 66 69 6c 65 | 20 66 6f 72 20 66 69 67 | % file| for fig|
|00005d40| 75 72 65 20 6c 69 73 74 | 0a 58 5c 6e 65 77 77 72 |ure list|.X\newwr|
|00005d50| 69 74 65 5c 74 61 62 6c | 65 6c 69 73 74 20 20 20 |ite\tabl|elist |
|00005d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d70| 20 20 20 20 20 20 20 20 | 20 20 25 20 66 69 6c 65 | | % file|
|00005d80| 20 66 6f 72 20 74 61 62 | 6c 65 20 6c 69 73 74 0a | for tab|le list.|
|00005d90| 58 0a 58 25 20 46 69 6c | 65 20 69 6e 69 74 69 61 |X.X% Fil|e initia|
|00005da0| 6c 69 7a 61 74 69 6f 6e | 3a 20 43 61 6c 6c 65 64 |lization|: Called|
|00005db0| 20 66 6f 72 20 74 68 65 | 20 66 69 72 73 74 20 66 | for the| first f|
|00005dc0| 69 67 75 72 65 20 6f 72 | 20 74 61 62 6c 65 20 6c |igure or| table l|
|00005dd0| 69 73 74 20 65 6e 74 72 | 79 0a 58 25 20 74 6f 20 |ist entr|y.X% to |
|00005de0| 6f 70 65 6e 20 74 68 65 | 20 63 6f 72 72 65 73 70 |open the| corresp|
|00005df0| 6f 6e 64 69 6e 67 20 66 | 69 6c 65 2e 0a 58 0a 58 |onding f|ile..X.X|
|00005e00| 5c 64 65 66 5c 46 69 67 | 4c 69 73 74 49 6e 69 74 |\def\Fig|ListInit|
|00005e10| 7b 5c 72 65 6c 61 78 25 | 20 20 20 20 20 20 20 20 |{\relax%| |
|00005e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e30| 20 20 20 20 20 20 20 20 | 25 20 69 6e 69 74 69 61 | |% initia|
|00005e40| 6c 69 7a 65 20 66 69 67 | 20 6c 69 73 74 0a 58 20 |lize fig| list.X |
|00005e50| 20 20 5c 69 6d 6d 65 64 | 69 61 74 65 5c 6f 70 65 | \immed|iate\ope|
|00005e60| 6e 6f 75 74 5c 66 69 67 | 6c 69 73 74 3d 5c 6a 6f |nout\fig|list=\jo|
|00005e70| 62 6e 61 6d 65 2e 66 67 | 6c 5c 72 65 6c 61 78 20 |bname.fg|l\relax |
|00005e80| 20 20 20 20 20 20 20 25 | 20 6f 70 65 6e 20 66 69 | %| open fi|
|00005e90| 6c 65 20 66 6f 72 20 6f | 75 74 70 75 74 0a 58 20 |le for o|utput.X |
|00005ea0| 20 20 5c 69 6d 6d 65 64 | 69 61 74 65 5c 77 72 69 | \immed|iate\wri|
|00005eb0| 74 65 5c 66 69 67 6c 69 | 73 74 7b 5c 40 63 6f 6d |te\figli|st{\@com|
|00005ec0| 6d 65 6e 74 20 46 69 67 | 75 72 65 20 4c 69 73 74 |ment Fig|ure List|
|00005ed0| 20 66 6f 72 20 60 5c 6a | 6f 62 6e 61 6d 65 27 7d | for `\j|obname'}|
|00005ee0| 25 0a 58 20 20 20 5c 69 | 6d 6d 65 64 69 61 74 65 |%.X \i|mmediate|
|00005ef0| 5c 77 72 69 74 65 5c 66 | 69 67 6c 69 73 74 7b 5c |\write\f|iglist{\|
|00005f00| 40 63 6f 6d 6d 65 6e 74 | 20 3d 3d 3d 3d 3d 3d 3d |@comment| =======|
|00005f10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005f20| 3d 3d 3d 3d 3d 7d 25 0a | 58 20 20 20 5c 67 64 65 |=====}%.|X \gde|
|00005f30| 66 5c 46 69 67 4c 69 73 | 74 49 6e 69 74 7b 5c 72 |f\FigLis|tInit{\r|
|00005f40| 65 6c 61 78 7d 25 20 20 | 20 20 20 20 20 20 20 20 |elax}% | |
|00005f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f60| 20 25 20 61 6e 64 20 64 | 69 73 61 62 6c 65 20 69 | % and d|isable i|
|00005f70| 6e 69 74 0a 58 20 7d 0a | 58 0a 58 5c 64 65 66 5c |nit.X }.|X.X\def\|
|00005f80| 54 61 62 4c 69 73 74 49 | 6e 69 74 7b 5c 72 65 6c |TabListI|nit{\rel|
|00005f90| 61 78 25 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ax% | |
|00005fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fb0| 20 20 20 25 20 69 6e 69 | 74 69 61 6c 69 7a 65 20 | % ini|tialize |
|00005fc0| 20 0a 58 20 20 20 5c 69 | 6d 6d 65 64 69 61 74 65 | .X \i|mmediate|
|00005fd0| 5c 6f 70 65 6e 6f 75 74 | 5c 74 61 62 6c 65 6c 69 |\openout|\tableli|
|00005fe0| 73 74 3d 5c 6a 6f 62 6e | 61 6d 65 2e 74 62 6c 5c |st=\jobn|ame.tbl\|
|00005ff0| 72 65 6c 61 78 20 20 20 | 20 20 20 25 20 6f 70 65 |relax | % ope|
|00006000| 6e 20 66 69 6c 65 20 66 | 6f 72 20 6f 75 74 70 75 |n file f|or outpu|
|00006010| 74 0a 58 20 20 20 5c 69 | 6d 6d 65 64 69 61 74 65 |t.X \i|mmediate|
|00006020| 5c 77 72 69 74 65 5c 74 | 61 62 6c 65 6c 69 73 74 |\write\t|ablelist|
|00006030| 7b 5c 40 63 6f 6d 6d 65 | 6e 74 20 54 61 62 6c 65 |{\@comme|nt Table|
|00006040| 20 4c 69 73 74 20 66 6f | 72 20 60 5c 6a 6f 62 6e | List fo|r `\jobn|
|00006050| 61 6d 65 27 7d 25 0a 58 | 20 20 20 5c 69 6d 6d 65 |ame'}%.X| \imme|
|00006060| 64 69 61 74 65 5c 77 72 | 69 74 65 5c 74 61 62 6c |diate\wr|ite\tabl|
|00006070| 65 6c 69 73 74 7b 5c 40 | 63 6f 6d 6d 65 6e 74 20 |elist{\@|comment |
|00006080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 7d 25 0a 58 20 |========|===}%.X |
|000060a0| 20 20 5c 67 64 65 66 5c | 54 61 62 4c 69 73 74 49 | \gdef\|TabListI|
|000060b0| 6e 69 74 7b 5c 72 65 6c | 61 78 7d 25 20 20 20 20 |nit{\rel|ax}% |
|000060c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000060d0| 20 20 20 20 20 20 20 25 | 20 61 6e 64 20 64 69 73 | %| and dis|
|000060e0| 61 62 6c 65 20 69 6e 69 | 74 0a 58 20 7d 0a 58 0a |able ini|t.X }.X.|
|000060f0| 58 25 20 5c 46 69 67 4c | 69 73 74 57 72 69 74 65 |X% \FigL|istWrite|
|00006100| 20 6f 75 74 70 75 74 73 | 20 74 65 78 74 20 28 23 | outputs| text (#|
|00006110| 32 29 20 74 6f 20 74 68 | 65 20 66 69 67 75 72 65 |2) to th|e figure|
|00006120| 20 6f 72 20 74 61 62 6c | 65 20 6c 69 73 74 73 20 | or tabl|e lists |
|00006130| 28 23 31 29 2e 20 20 0a | 58 25 20 4e 6f 74 65 20 |(#1). .|X% Note |
|00006140| 74 68 61 74 20 77 65 20 | 44 4f 20 4e 4f 54 20 75 |that we |DO NOT u|
|00006150| 73 65 20 5c 69 6d 6d 65 | 64 69 61 74 65 20 73 6f |se \imme|diate so|
|00006160| 20 74 68 61 74 20 69 6e | 66 6f 20 69 6e 20 66 6c | that in|fo in fl|
|00006170| 6f 61 74 69 6e 67 20 0a | 58 25 20 69 6e 73 65 72 |oating .|X% inser|
|00006180| 74 69 6f 6e 73 20 69 73 | 6e 27 74 20 77 72 69 74 |tions is|n't writ|
|00006190| 74 65 6e 20 75 6e 74 69 | 6c 20 69 74 20 62 65 63 |ten unti|l it bec|
|000061a0| 6f 6d 65 73 20 70 61 72 | 74 20 6f 66 20 61 20 70 |omes par|t of a p|
|000061b0| 61 67 65 2e 20 20 54 68 | 69 73 0a 58 25 20 69 73 |age. Th|is.X% is|
|000061c0| 20 73 6f 20 74 68 61 74 | 20 77 65 20 67 65 74 20 | so that| we get |
|000061d0| 74 68 65 20 70 61 67 65 | 20 6e 75 6d 62 65 72 73 |the page| numbers|
|000061e0| 20 63 6f 72 72 65 63 74 | 2e 20 0a 58 0a 58 5c 64 | correct|. .X.X\d|
|000061f0| 65 66 5c 46 69 67 4c 69 | 73 74 57 72 69 74 65 23 |ef\FigLi|stWrite#|
|00006200| 31 23 32 7b 5c 72 65 6c | 61 78 0a 58 20 20 5c 69 |1#2{\rel|ax.X \i|
|00006210| 66 78 23 31 5c 66 69 67 | 6c 69 73 74 5c 72 65 6c |fx#1\fig|list\rel|
|00006220| 61 78 20 20 20 5c 46 69 | 67 4c 69 73 74 49 6e 69 |ax \Fi|gListIni|
|00006230| 74 5c 66 69 0a 58 20 20 | 5c 69 66 78 23 31 5c 74 |t\fi.X |\ifx#1\t|
|00006240| 61 62 6c 65 6c 69 73 74 | 5c 72 65 6c 61 78 20 5c |ablelist|\relax \|
|00006250| 54 61 62 4c 69 73 74 49 | 6e 69 74 5c 66 69 0a 58 |TabListI|nit\fi.X|
|00006260| 20 20 5c 65 64 65 66 5c | 40 6c 69 6e 65 40 7b 7b | \edef\|@line@{{|
|00006270| 23 32 7d 7d 25 20 20 20 | 20 20 20 20 20 20 20 20 |#2}}% | |
|00006280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006290| 25 20 65 78 70 61 6e 64 | 20 74 6f 6b 65 6e 73 20 |% expand| tokens |
|000062a0| 74 6f 20 77 72 69 74 65 | 0a 58 20 20 5c 77 72 69 |to write|.X \wri|
|000062b0| 74 65 23 31 5c 40 6c 69 | 6e 65 40 20 20 20 20 20 |te#1\@li|ne@ |
|000062c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062d0| 20 20 20 20 20 20 20 20 | 20 20 25 20 77 72 69 74 | | % writ|
|000062e0| 65 20 74 6f 20 66 69 67 | 2f 74 61 62 6c 65 20 6c |e to fig|/table l|
|000062f0| 69 73 74 20 66 69 6c 65 | 0a 58 20 20 7d 0a 58 0a |ist file|.X }.X.|
|00006300| 58 25 20 5c 46 69 67 4c | 69 73 74 57 72 69 74 65 |X% \FigL|istWrite|
|00006310| 4e 58 20 69 73 20 74 68 | 65 20 73 61 6d 65 20 61 |NX is th|e same a|
|00006320| 73 20 5c 46 69 67 4c 69 | 73 74 57 72 69 74 65 20 |s \FigLi|stWrite |
|00006330| 62 75 74 20 69 74 20 64 | 6f 65 73 20 6e 6f 74 20 |but it d|oes not |
|00006340| 65 78 70 61 6e 64 20 0a | 58 25 20 69 74 27 73 20 |expand .|X% it's |
|00006350| 61 72 67 75 6d 65 6e 74 | 2c 20 61 6e 64 20 69 74 |argument|, and it|
|00006360| 20 69 73 20 6e 6f 74 20 | 5c 69 6d 6d 65 64 69 61 | is not |\immedia|
|00006370| 74 65 2e 0a 58 0a 58 5c | 64 65 66 5c 46 69 67 4c |te..X.X\|def\FigL|
|00006380| 69 73 74 57 72 69 74 65 | 4e 58 23 31 23 32 7b 5c |istWrite|NX#1#2{\|
|00006390| 72 65 6c 61 78 0a 58 20 | 20 5c 69 66 78 23 31 5c |relax.X | \ifx#1\|
|000063a0| 66 69 67 6c 69 73 74 5c | 72 65 6c 61 78 5c 46 69 |figlist\|relax\Fi|
|000063b0| 67 4c 69 73 74 49 6e 69 | 74 5c 66 69 0a 58 20 20 |gListIni|t\fi.X |
|000063c0| 5c 69 66 78 23 31 5c 74 | 61 62 6c 65 6c 69 73 74 |\ifx#1\t|ablelist|
|000063d0| 5c 72 65 6c 61 78 5c 54 | 61 62 4c 69 73 74 49 6e |\relax\T|abListIn|
|000063e0| 69 74 5c 66 69 0a 58 20 | 20 5c 77 72 69 74 65 4e |it\fi.X | \writeN|
|000063f0| 58 23 31 7b 23 32 7d 20 | 20 20 20 20 20 20 20 20 |X#1{#2} | |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.